menu
gokwik package
documentation
api/httpClient.dart
DioClient class
DioClient class
dark_mode
light_mode
DioClient
class
Constructors
DioClient
()
factory
Properties
hashCode
→
int
The hash code for this object.
no setter
inherited
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
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
gokwik package
documentation
api/httpClient
DioClient class
httpClient library