RequestInfo class
Options for an HTTP request.
Constructors
-
RequestInfo({RequestCancelToken? requestCancelToken, Map<
String, dynamic> ? headers, void onReceiveProgress(int bytesReceived, int? totalBytes)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, dynamic> ? -
Headers to be sent with the request.
getter/setter pair
- onReceiveProgress ↔ (void Function(int bytesReceived, int? totalBytes)?)
-
Callback for receiving progress updates.
totalBytes
will be null if the total size is unknown.getter/setter pair - requestCancelToken ↔ RequestCancelToken?
-
A RequestCancelToken that can be used to cancel the request.
getter/setter pair
- 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