RateLimitPolicy constructor

const RateLimitPolicy({
  1. required int limitCount,
  2. required Duration window,
})

Creates a RateLimitPolicy with a specified limit count and window.

limitCount: The maximum number of allowed requests within the time window.

window: The duration representing the time window for the rate limit.

Implementation

const RateLimitPolicy({
  required this.limitCount,
  required this.window,
});