RestClient class abstract

Implementers

Constructors

RestClient()

Properties

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

Methods

authorizationGenerate(String appkey, String appSecret) String
deleteAsync<T>(String path) Future<MappedNetworkServiceResponse<T>>
downloadFile(String url, {required String savePath, dynamic onProgress(int)?}) Future<File?>
formHeaders() Map<String, String?>
getAsync<T>(String path, {bool hasHeader = true}) Future<MappedNetworkServiceResponse<T>>
headers() Map<String, String>
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>>
postFormAsync<T>(String path, dynamic data) Future<MappedNetworkServiceResponse<T>>
postFormMultiAsync<T>(String path, dynamic data) Future<MappedNetworkServiceResponse<T>?>
postFormNoSessionAsync<T>(String path, dynamic data) Future<MappedNetworkServiceResponse<T>>
postRawStrAsync<T>(String path, dynamic data) Future<MappedNetworkServiceResponse<T>>
putAsync<T>(String path, dynamic data) Future<MappedNetworkServiceResponse<T>>
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>>
uploadFileAsync<T>(String path, List<int> fileBytes, {String? fileName, bool hasHeaders = true}) Future<MappedNetworkServiceResponse<T>>

Operators

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

Constants

ApiAppKey → const String
ApiAppSecret → const String
tenant → const String
timeout → const Duration