refresh method

  1. @override
void refresh(
  1. PageKeyType firstPageKey
)
override

Reset the state to the initial state (clear items and reset to the first page key)

Implementation

@override
void refresh(PageKeyType firstPageKey) {
  state = PagingState<PageKeyType, T>(
    nextPageKey: firstPageKey,
    itemList: const [],
    error: null,
  );
}