Throttle constructor

Throttle({
  1. int maxAttempts = 60,
  2. Duration duration = const Duration(minutes: 1),
  3. bool includeUserIdentifier = false,
  4. String? customMessage,
  5. Map<String, String>? headers,
  6. bool bypassInDevelopment = true,
})

Implementation

Throttle({
  this.maxAttempts = 60,
  this.duration = const Duration(minutes: 1),
  this.includeUserIdentifier = false,
  this.customMessage,
  this.headers,
  this.bypassInDevelopment = true,
}) {
  _throttle = ThrottleRequests(
    maxAttempts: maxAttempts,
    duration: duration,
  );
}