cancel method

void cancel()
inherited

Cancels the current fetch operation.

This can be called right before a call to fetchNextPage to force a new fetch.

Implementation

void cancel() {
  operation = null;
  value = value.copyWith(isLoading: false);
}