DioUtils class

Constructors

DioUtils()

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 Properties

authOptions ↔ Options?
getter/setter pair
cacheOptions ↔ CacheOptions
getter/setter pair
dio ↔ Dio?
getter/setter pair

Static Methods

clearCache() → dynamic
initDio() → void
instance() → Dio
printResponse(String url, Response? response) → dynamic
request(String requestType, String url, {String? contentType, Map<String, dynamic>? queryParameters, Map<String, dynamic>? headers, dynamic body, Options? requestOption, bool isToCache = true, bool forceRefresh = true, int daysToCache = 30, int hoursToCache = 0}) Future<Response>

Constants

REQUEST_DELETE → const String
REQUEST_GET → const String
REQUEST_POST → const String
REQUEST_PUT → const String