EasyHttpClient<T> class

Constructors

EasyHttpClient(T initData, {String localCacheKey = "", Duration connectTimeout = const Duration(seconds: 10), Duration receiveTimeout = const Duration(seconds: 10), Function? onSuccessCallback, dynamic onCacheCallback(T cache)?, dynamic onNewDataCallback(T newData)?})

Properties

connectTimeout Duration
final
dio Dio
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
httpData → T
no setter
initData → T
http response init data, use for initial _httpData obs value
final
localCacheKey String
leave empty will disable local cache
final
obsHttpData Rx<T>
no setter
receiveTimeout Duration
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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