Rate class Null safety

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.
read-onlyoverride
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.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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