PaginationDataController<T> constructor
PaginationDataController<T> ({
- required OnFetchCallback<
T> fetch, - int initial = 0,
- int limit = 20,
- 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();
}