The ListView widget takes the following parameters:
itemCount: This is the total list size that we need to specify beforehand. In the case of a paginated list, we can grow the list by increasing the count and rebuilding the ListView.
itemBuilder: This is a function that gives us the index of the list member widget that we’re going to build. Like in our example, the index will go from 0 to 9 since the itemSize is 10. And, for an even index, we configure different widget properties. Although it isn’t common, for each index, we can have a totally different widget, if we want.
reverse: By default, it’s false, but if true, the ListView will start generating widgets from bottom to top. Try uncommenting reverse:true and notice the difference in behavior.