DioService class

Constructors

DioService({required Dio dioClient, CacheOptions? globalCacheOptions, Iterable<Interceptor>? interceptors, HttpClientAdapter? httpClientAdapter})

Properties

globalCacheOptions → CacheOptions?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelRequests({CancelToken? cancelToken}) → void
delete<R>({required String endpoint, JSON? data, Options? options, CancelToken? cancelToken}) Future<ResponseModel<R>>
get<R>({required String endpoint, JSON? queryParams, Options? options, CacheOptions? cacheOptions, CancelToken? cancelToken}) Future<ResponseModel<R>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch<R>({required String endpoint, JSON? data, Options? options, CancelToken? cancelToken}) Future<ResponseModel<R>>
post<R>({required String endpoint, JSON? data, Options? options, CancelToken? cancelToken}) Future<ResponseModel<R>>
toString() String
A string representation of this object.
inherited

Operators

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