nextPage method

Future<UsersRepositoryState> nextPage(
  1. bool shouldReload
)

Implementation

Future<UsersRepositoryState> nextPage(bool shouldReload) async {
  if (shouldReload) {
    _lastDocument = null;
  }
  final tmpState = await _fetchUsers();
  state = AsyncValue.data(tmpState);
  return tmpState;
}