statusOf method

CooldownStatus statusOf(
  1. String key
)

Implementation

CooldownStatus statusOf(String key) => remainingOf(key) > Duration.zero
    ? CooldownStatus.running
    : CooldownStatus.ready;