RateLimitSchedule class

Computes rate-limited fire times from requested times.

Constructors

RateLimitSchedule({required int maxPerPeriod, required Duration period, Duration cooldown = Duration.zero})
At most maxPerPeriod fires per rolling period, each at least cooldown after the previous. Requires maxPerPeriod >= 1 and a positive period; cooldown defaults to zero. Audited: 2026-06-12 11:26 EDT

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shape(List<DateTime> requested) List<DateTime>
Returns the admitted fire times for requested, in order. Each output is >= its corresponding request and respects the cooldown and window quota.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited