itemCount property
int
itemCount
Returns the number of items in a list. When loading a new page, the number of items is increased by one, which can be used to represent the bottom loading widget.
Implementation
int get itemCount =>
hasNextPage && isNextPageLoading ? list.length + 1 : list.length;