PagingController<PageKeyType, ItemType>.fromValue constructor

PagingController<PageKeyType, ItemType>.fromValue(
  1. PagingState<PageKeyType, ItemType> value, {
  2. required PageKeyType firstPageKey,
  3. int? invisibleItemsThreshold,
})

Creates a controller from an existing PagingState.

firstPageKey is the key to be used in case of a refresh.

Implementation

PagingController.fromValue(
  PagingState<PageKeyType, ItemType> value, {
  required this.firstPageKey,
  this.invisibleItemsThreshold,
}) : super(value);