NetworkUtil class

Constructors

NetworkUtil()

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
toString() String
A string representation of this object.
inherited
updateFile<T>(Dio dio, String url, String fileName, File file, Map<String, dynamic> formData, {CancelToken? cancelToken, ProgressCallback? onSendProgress, JsonParse<T>? jsonParse}) Future<T>
updateMultiFile<T>(Dio dio, String url, Map<String, dynamic> formData, {List<File>? files, CancelToken? cancelToken, ProgressCallback? onSendProgress, JsonParse<T>? jsonParse}) Future<T>

Operators

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

Static Methods

requestUrl(Dio dio, String url, {RequestMethod requestMethod = RequestMethod.post, Map<String, dynamic>? customParams, Options? options, Map<String, dynamic> optionsHeaderCommonChangeParamsGetBlock()?, CancelToken? cancelToken, required CJNetworkClientGetSuccessResponseModelBlock getSuccessResponseModelBlock, required CJNetworkClientGetFailureResponseModelBlock getFailureResponseModelBlock, required CJNetworkClientGetDioErrorResponseModelBlock getDioErrorResponseModelBlock}) Future<ResponseModel>