BaseHttp class

--> Base Http

Constructors

BaseHttp()
factory

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

get({required String endPointURL, Map<String, dynamic>? queryParameters, Map<String, dynamic>? header, bool addToCache = true}) Future
getStream({required String endPointURL, Map<String, dynamic>? queryParameters, Map<String, dynamic>? header, bool useCache = true}) Stream
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post({required String endPointURL, Map<String, dynamic>? data, Map<String, dynamic>? header, bool addToCache = true}) Future
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

apiCacheStorage → GetStorage
---------- Storage -------------------
no setter
baseURL String
-------- INITIALIZATION -----------
getter/setter pair
getAuthenticationStream Stream<AuthStatus>
no setter
isStorageReady bool
getter/setter pair
maxRedirects int
getter/setter pair

Static Methods

appendInterceptor(InterceptorsWrapper interceptor) → dynamic
append an interceptor from here. all interceptors added in a row are executed one after another
checkAuthStatus() → dynamic
clearCacheStorage() → dynamic
getAuthData() → dynamic
getDefaultHeaders() → dynamic
getToken() String?
initializeAPIServices() → dynamic
storeAuthData(Map<String, dynamic>? data) → dynamic
storeDefaultHeaders(Map<String, dynamic>? header) → dynamic
storeToken(String token) → dynamic

Constants

classTag → const String