The ListView widget takes the following parameters:

Sumit Rawal answered on July 2, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


The ListView widget takes the following parameters:

0

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. 

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on Jul 02 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.