PagedList<T> constructor

PagedList<T>(
  1. List<T> items, {
  2. bool hasReachedMax = false,
})

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);