RateLimit class abstract

The RateLimit object defines the limit on the number of outgoing requests from your web app.

Annotations
  • @anonymous
  • @JS()

Constructors

RateLimit({num maxRequestsPerSecond, num remainingRequests, num timeUntilNextRequestMs, num timeUntilResetMs})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
maxRequestsPerSecond num
The maximum allowed requests per second.
getter/setter pair
remainingRequests num
The number of requests that might be delivered before the rate limiter blocks messages.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeUntilNextRequestMs num
The number of milliseconds until your app can send the next message.
getter/setter pair
timeUntilResetMs num
The number of milliseconds until remainingRequests equals maxRequestsPerSecond.
getter/setter pair

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.
inherited