first method

Future<PaginationState<ReturnType>> first()

Jumps to the first page.

Implementation

Future<PaginationState<ReturnType>> first() async {
  await _waitForInternalState();
  _internalStateObserver.next(null);
  _firstElement = null;
  _lastElement = null;
  _goToFirstPage();
  return waitForData();
}