AppHttpClient class

Inheritance

Constructors

AppHttpClient({BaseOptions? baseOptions, List<Interceptor>? interceptors, bool debug = true, int requestSendTimeout = HttpConstants.requestReceiveTimeout, int requestReceiveTimeout = HttpConstants.requestSendTimeout})

Properties

baseOptions → BaseOptions?
final
debug bool
final
hashCode int
The hash code for this object.
no setterinherited
http → Dio
no setterinherited
interceptors → Interceptors
no setterinherited
requestReceiveTimeout int?
getter/setter pairinherited
requestSendTimeout int?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

manageDioError(DioError e, StackTrace stacktrace, {dynamic decoder(dynamic)?}) ErrorResponse
override
manageError(Object e, StackTrace stacktrace) ErrorResponse
override
manageException(Exception e, StackTrace stacktrace) ErrorResponse
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieveData<T>(BaseRequest request, {bool? cached, bool? forceRefresh, Duration? duration}) Future<Either<ErrorResponse, SuccessResponse<T>>>
inherited
setup(BaseOptions? baseOptions, List<Interceptor>? interceptors, bool useLogInterceptor) → void
inherited
toString() String
A string representation of this object.
inherited
updateToken(String token) → dynamic

Operators

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