DioClient class

Inheritance

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

delete(String url, {dynamic data, String? token, Map? headers, String contentType = 'application/json', int msTimeout = 10000}) Future<Response>
HTTP DELETE
override
get(String url, {String? token, dynamic responseType = ResponseType.json, Map<String, dynamic>? queryParams, Map<String, dynamic>? headers, int msTimeout = 10000}) Future<Response>
HTTP GET
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(String url, {String? token, dynamic data, Map? headers, String contentType = 'application/json', int msTimeout = 10000}) Future<Response>
HTTP PATCH
override
post(String url, {dynamic data, String? token, Map? headers, String contentType = 'application/json', int msTimeout = 10000}) Future<Response>
HTTP POST
override
put(String url, {dynamic data, String? token, Map? headers, String contentType = 'application/json', int msTimeout = 10000}) Future<Response>
HTTP PUT
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance DioClient
no setter