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, super.useCache})
: _lastActivatedWithCache = Prf<DateTime>('prf_${prefix}_cd_date_time'),
_activationCountWithCache =
Prf<int>('prf_${prefix}_cd_count', defaultValue: 0);