DioClient class

Constructors

DioClient()
factory

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

dispose() → void
Drops the client so the next initialize builds a fresh one. Used on logout: the client accumulates auth headers on options.headers, and dropping it is exhaustive where removing headers one by one is not.
getClient() → Dio
initialize(String env, [String? type]) → Future<void>
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

convertToBaseResponse<T>(Map<String, dynamic> data, {T fromJson(Map<String, dynamic>)?}) → dynamic

Constants

requestStartTimeKey → const String
requestTimeout → const Duration