anyStateExists method

Future<bool> anyStateExists()

Checks if any values related to this cooldown exist in persistent storage.

This method is primarily intended for testing and debugging purposes. Returns true if any of the cooldown values exist in storage.

Implementation

Future<bool> anyStateExists() async {
  bool lastActivated = await _lastActivated.existsOnPrefs();
  bool activationCount = await _activationCount.existsOnPrefs();
  return lastActivated || activationCount;
}