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<Interceptor> interceptors) → void
set 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
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, String? path, Duration? connectTimeout, Duration? receiveTimeout, Duration? sendTimeout, Map<String, Object?>? extra, Map<String, Object?>? headers, ResponseType? responseType, String? contentType, bool? followRedirects, int? maxRedirects, bool? persistentConnection, RequestEncoder? requestEncoder, ResponseDecoder? responseDecoder}) → void
call this function to set base options of Dio client
setUpDio() → void
setup dio