PrfCooldown constructor
Creates a new cooldown with the specified prefix and duration.
- The
prefix
is used to create unique keys for storing cooldown data. - The
duration
specifies how long the cooldown should last.
Implementation
PrfCooldown(String prefix, {required this.duration})
: _lastActivated = PrfDateTime('prf_${prefix}_cd_date_time'),
_activationCount = PrfInt('prf_${prefix}_cd_count', defaultValue: 0);