PrfRolloverCounter constructor

PrfRolloverCounter(
  1. String key, {
  2. required Duration resetEvery,
  3. bool useCache = false,
})

Constructs a PrfRolloverCounter with a unique key and a specified resetEvery duration. Optionally, caching can be enabled with useCache.

  • key: A unique identifier for the counter.
  • resetEvery: The duration after which the counter resets.
  • useCache: Optional parameter to enable caching.

Implementation

PrfRolloverCounter(super.key, {required this.resetEvery, super.useCache})
    : super(suffix: 'roll');