PackageDio class

use this class to do DIO APi Request

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

Operators

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

Static Methods

addInterceptors(List<UnifiedInterceptor> interceptors) → void
set unified interceptors
dioDelete({required String urlPath, Map<String, dynamic>? queryPara, Map<String, dynamic>? headers}) → dynamic
Delete request of DIO
dioGet({required String urlPath, Map<String, dynamic>? queryPara, Map<String, dynamic>? headers}) → dynamic
GET request of DIO
dioMultipart({required String urlPath, Map<String, dynamic>? queryPara, Map<String, dynamic>? headers, Map<String, Map<String, dynamic>>? files, Map<String, String>? fields}) → dynamic
Multipart request of DIO for file uploads Example:
dioPost({required String urlPath, dynamic body, Map<String, dynamic>? queryPara, Map<String, dynamic>? headers}) → dynamic
POST request of DIO
setBaseOptions({String? baseUrl, Map<String, dynamic>? queryParameters, Duration? connectTimeout, Duration? receiveTimeout, Duration? sendTimeout, Map<String, Object?>? extra, Map<String, Object?>? headers, UnifiedResponseType? responseType, String? contentType, bool? followRedirects, int? maxRedirects, bool? persistentConnection}) → void
call this function to set base options of Dio client
setUpDio() → void
setup dio