reset method

Future<void> reset()

Fully resets the limiter to its initial state.

This restores the token count to maxTokens and resets the refill timestamp to the current time. Useful for scenarios where you want to clear rate limits, such as after a user upgrade or payment.

Implementation

Future<void> reset() async {
  await _tokenCount.set(maxTokens.toDouble());
  await _lastRefill.set(DateTime.now());
}