RequestOptions class

Constructors

RequestOptions({required String method, required Uri uri, Map<String, String> headers = const {}, dynamic body, Duration? timeout, ProgressCallback? onProgress, bool expectJsonArray = false, Map<String, dynamic>? queryParameters, Map<String, dynamic>? pathParams, CancelToken? cancelToken})

Properties

body ↔ dynamic
getter/setter pair
cancelToken CancelToken?
getter/setter pair
expectJsonArray bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
getter/setter pair
method String
getter/setter pair
onProgress ProgressCallback?
getter/setter pair
pathParams Map<String, dynamic>?
getter/setter pair
queryParameters Map<String, dynamic>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration?
getter/setter pair
uri Uri
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