Rate class

No more than maximum tasks can be started over any given period.

Constructors

Rate(int maximum, Duration period)
Creates a rate limit.
const
Rate.perHour(int maximum)
Creates a rate limit per hour.
factory
Rate.perMinute(int maximum)
Creates a rate limit per minute.
factory
Rate.perSecond(int maximum)
Creates a rate limit per second.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
maximum int
The maximum number of tasks to start in any given period.
final
period Duration
The period of the Rate, in which maximum tasks can be started.
final
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
toString() String
A string representation of this object.
inherited

Operators

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