TraktRateLimit class
Rate limit information returned by Trakt.
Constructors
- TraktRateLimit({int? limit, int? remaining, DateTime? reset, Duration? retryAfter})
-
Creates a new TraktRateLimit instance.
const
-
TraktRateLimit.fromHeaders(Map<
String, String> headers) -
Creates a TraktRateLimit from HTTP response headers.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit → int?
-
Total number of requests allowed per period.
final
- remaining → int?
-
Number of requests remaining in the current period.
final
- reset → DateTime?
-
When the current period resets.
final
- retryAfter → Duration?
-
How long to wait before retrying (if rate limited).
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited