PaginationDataController<T> constructor

PaginationDataController<T>({
  1. required OnFetchCallback<T> fetch,
  2. int initial = 0,
  3. int limit = 20,
  4. double loadThreshold = 200,
})

Implementation

PaginationDataController({
  required this.fetch,
  this.initial = 0,
  this.limit = 20,
  this.loadThreshold = 200,
}) : super(PagingData<T>(
        initial - 1,
        limit,
        null,
        const AsyncValue.loading(),
        Object(),
      )) {
  load();
}