APIFlags class

API Requests flags

These constants are being used to set different properties of request queue processing for independent requests instances. APIRequest.settings property is being used for that. The flags are working in bit mask technique. To combine multiple flags use | operator

APIRequest('user-info', settings: APIFlags.skipGlobal | APIFlags.resendOnFlood)

Constructors

APIFlags()

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Constants

resend → const int
Resend on any error
resendOnFlood → const int
Resend on flood error
skip → const int
Ignore by-method throttling
skipGlobal → const int
Ignore global throttling
waiting → const int
Allow throttling (enabled by default)