ApiRequest class

Constructors

ApiRequest(String url, {String? method, dynamic body, Options? options, bool showLogs = kDebugMode, CancelToken? cancelToken, void onReceiveProgress(int, int)?, void onSendProgress(int, int)?, Map<String, dynamic>? queryParameters})

Properties

body ↔ dynamic
getter/setter pair
cancelToken CancelToken?
final
dio Dio
final
hashCode int
The hash code for this object.
no setterinherited
method String?
getter/setter pair
onReceiveProgress → void Function(int, int)?
final
onSendProgress → void Function(int, int)?
final
options Options?
final
queryParameters Map<String, dynamic>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLogs bool
final
url String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send<T>() Future<Response>
toString() String
A string representation of this object.
inherited

Operators

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