PagedList<T> constructor
Creates paged list.
items
- list of items, cannot be null or empty,
hasReachedMax
- flag informing if all items has already been fetched.
True if there are no more pages, false otherwise.
Implementation
PagedList(
List<T> items, {
this.hasReachedMax = false,
}) : assert(
!(items.isEmpty && !hasReachedMax),
'Items cannot be empty while has not reached max',
),
items = UnmodifiableListView(items);