cancel method

Result<T>? cancel(
  1. K key, {
  2. bool always = false,
})

Cancels any ongoing fetch operation for the ResultNotifier with the specified key.

See ResultNotifier.cancel for more information.

Implementation

Result<T>? cancel(K key, {bool always = false}) {
  _cache[key]?.notifier.cancel(always: always);
  return read(key);
}