CustomDio class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
send({required RequestMethod reqMethod, required String path, dynamic onSendProgress(int count, int total)?, dynamic onReceiveProgress(int count, int total)?, CancelToken? cancelToken, Map<String, dynamic> body = const <String, dynamic>{}, Map<String, dynamic> query = const <String, dynamic>{}, String? saveDirPath})
→ Future<Response>
-
send any type of request GET POST PUT PATCH DELETE DOWNLOAD
-
toString()
→ String
-
A string representation of this object.
inherited
-
uploadBytes({required String path, required Uint8List bytes, void sendProgress(int received, int total)?, List<Map<String, String>>? body, bool isPost = true, required String bytesExtension, bool loading = false, CancelToken? cancelToken})
→ Future<Response>
-
upload file bytes
-
uploadFile({required String path, required String filePath, bool isPost = true, void sendProgress(int received, int total)?, List<Map<String, String>>? body, CancelToken? cancelToken})
→ Future<Response>
-
upload file
-
uploadFiles({required String path, required List<DioUploadFileModel> filesModel, void sendProgress(int received, int total)?, List<Map<String, String>>? body, CancelToken? cancelToken})
→ Future<Response>
-