RateLimiter constructor

RateLimiter({
  1. required String storagePath,
  2. required int maxRequests,
  3. required Duration resetDuration,
  4. required String encryptionPassword,
  5. required IPBlocker ipBlocker,
  6. required CountryBlocker countryBlocker,
  7. required bool shouldDisplayCaptcha,
})

Constructor

Implementation

RateLimiter({
  required this.storagePath,
  required this.maxRequests,
  required this.resetDuration,
  required this.encryptionPassword,
  required this.ipBlocker,
  required this.countryBlocker,
  required this.shouldDisplayCaptcha,
}) {
  _loadRequests();
}