clear method

Future<void> clear()

Resets this Pagination to its initial state.

Implementation

Future<void> clear() {
  Log.debug('clear()', '$runtimeType');

  items.clear();
  hasNext.value = true;
  hasPrevious.value = true;
  startCursor = null;
  endCursor = null;
  return provider.clear();
}