cancel method

void cancel(
  1. String key
)

Cancels the cooldown at key — statusOf reports CooldownStatus.ready immediately afterward. A no-op on storage (but still bumps revision) if key wasn't running.

Implementation

void cancel(String key) {
  final state = _readState();
  state.remove(key);
  _persist(state);
  revision.value++;
}