What is ListView and its types?
ListView is used for displaying a scrollable list of items.
Types:
-
ListView()– Default constructor -
ListView.builder()– Efficient for long lists -
ListView.separated()– With separators -
ListView.custom()– Custom behavior
Example:
Comments
Post a Comment