DioClient class

Constructors

DioClient(CancelToken cancelToken)
DioClient.single({required CancelToken cancelToken})

Properties

cancelToken → CancelToken
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

delete<T>({required NetworkRequestEntity request, bool withLoading = true, bool withMessage = true, bool clickClose = false, bool allowClick = true, bool ignoreContentClick = true, HttpSuccessCallback<T?>? successCallback, HttpMessageAndCodeCallback<T>? messageAndCodeCallback, HttpCompleteCallback<T>? completeCallback, HttpErrorCallback<T>? errorCallback}) → void
get<T>({required NetworkRequestEntity request, bool withLoading = true, bool withMessage = true, bool clickClose = false, bool allowClick = true, bool ignoreContentClick = true, HttpSuccessCallback<T?>? successCallback, HttpMessageAndCodeCallback<T>? messageAndCodeCallback, HttpCompleteCallback<T>? completeCallback, HttpErrorCallback<T>? errorCallback}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<T>({required NetworkRequestEntity request, bool withLoading = true, bool withMessage = true, bool clickClose = false, bool allowClick = true, bool ignoreContentClick = true, HttpSuccessCallback<T?>? successCallback, HttpMessageAndCodeCallback<T>? messageAndCodeCallback, HttpCompleteCallback<T>? completeCallback, HttpErrorCallback<T>? errorCallback}) → void
put<T>({required NetworkRequestEntity request, bool withLoading = true, bool withMessage = true, bool clickClose = false, bool allowClick = true, bool ignoreContentClick = true, HttpSuccessCallback<T?>? successCallback, HttpMessageAndCodeCallback<T>? messageAndCodeCallback, HttpCompleteCallback<T>? completeCallback, HttpErrorCallback<T>? errorCallback}) → void
toString() String
A string representation of this object.
inherited

Operators

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