NetworkRequest class Null safety

Constructors

NetworkRequest({required dynamic api, dynamic data, bool callDefaults = true, dynamic timeOut = const Duration(seconds: 30), bool handleErrors = true, bool handleSuccess = true, Function? retry, void onReceiveProgress(int, int)?, String? savePath})
factory

Properties

api String
final
callDefaults bool
final
data → dynamic
final
dio Dio
final
handleErrors bool
final
handleSuccess bool
final
hashCode int
The hash code for this object.
read-onlyinherited
isCancelable bool
final
onReceiveProgress → (dynamic Function?(int, int)?)
final
options NetworkOption
final
retry Function?
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
savePath String?
final
timeOut Duration
final

Methods

delete() Future<NetworkResponse>
download() Future<NetworkResponse>
get() Future<NetworkResponse>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
post() Future<NetworkResponse>
put() Future<NetworkResponse>
toString() String
A string representation of this object.
inherited

Operators

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