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.isNotEmpty, 'Items cannot be empty'),
items = UnmodifiableListView(items);