PagewiseLoadController<T> constructor

PagewiseLoadController<T>({
  1. required PageFuture<T> pageFuture,
  2. required int? pageSize,
})

Creates a PagewiseLoadController.

You must provide both the pageFuture and the pageSize

Implementation

PagewiseLoadController({required this.pageFuture, required this.pageSize}) {
  _isResetting = false;
  _starFetchListeners = [];
  _stopFetchListeners = [];
  (_isFetchingNotifier = ValueNotifier(false))
      .addListener(_onFetchingChanged);
}