Throttle class

Inheritance

Constructors

Throttle({int maxAttempts = 6, Duration duration = const Duration(seconds: 60)})

Properties

duration Duration
final
hashCode int
The hash code for this object.
no setterinherited
maxAttempts int
final
next Middleware?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
throttle ↔ ThrottleRequests
getter/setter pair

Methods

handle(Request req) Future
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setNext(Middleware middleware) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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