completeReset method

Future<void> completeReset()

Completely resets the cooldown and counter.

Clears the activation timestamp and resets the activation count to zero.

Implementation

Future<void> completeReset() async {
  await _lock.synchronized(() async {
    await _lastActivated.remove();
    await _activationCount.set(0);
  });
}