DefaultRestClient class

Inheritance

Constructors

DefaultRestClient()

Properties

dioInstance ↔ Dio
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
isDio → bool
finalinherited
optionsEmpty → Options
no setterinherited
optionsForm → Options
no setterinherited
optionsJson → Options
no setterinherited
optionsRaw → Options
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorizationGenerate(String appkey, String appSecret) → String
inherited
deleteAsync<T>(String path) → Future<MappedNetworkServiceResponse<T>>
inherited
downloadFile(String url, {required String savePath, dynamic onProgress(int)?}) → Future<File?>
inherited
formHeaders() → Map<String, String?>
inherited
getAsync<T>(String path, {bool hasHeader = true}) → Future<MappedNetworkServiceResponse<T>>
inherited
headers() → Map<String, String>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postAsync<T>(String path, dynamic req, {bool hasHeaders = true}) → Future<MappedNetworkServiceResponse<T>>
inherited
postFormAsync<T>(String path, dynamic data) → Future<MappedNetworkServiceResponse<T>>
inherited
postFormMultiAsync<T>(String path, dynamic data) → Future<MappedNetworkServiceResponse<T>?>
inherited
postFormNoSessionAsync<T>(String path, dynamic data) → Future<MappedNetworkServiceResponse<T>>
inherited
postRawStrAsync<T>(String path, dynamic data) → Future<MappedNetworkServiceResponse<T>>
inherited
putAsync<T>(String path, dynamic data) → Future<MappedNetworkServiceResponse<T>>
inherited
toString() → String
A string representation of this object.
inherited
uploadFile<T>({required String resourcePath, required dynamic data, dynamic onRes(Map<String, dynamic>)?}) → Future<Map<String, dynamic>>
inherited
uploadFileAsync<T>(String path, List<int> fileBytes, {String? fileName, bool hasHeaders = true}) → Future<MappedNetworkServiceResponse<T>>
inherited

Operators

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