Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
logger
→ Logger
-
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
-
responseCacheData<T>({required String key})
→ Future<T?>
-
-
safeCall<F, T>({required Future<T> call(), required F onNetworkError(), required F onResponseError(Response? response), required F onUnknownError(Exception e)})
→ Future<Either<F, T>>
-
-
safeCallCacheStatus<T>(T? response)
→ Future<Either<String, T>>
-
-
safeCallListStatus<T>({required Either<FetchFailure, BaseListResponse<T>?> response, required dynamic funError(FetchFailure), required dynamic funDataServer(FetchData<List<T>>), dynamic funSuccess(FetchData<List<T>>)?, bool isLoadCache = true, String keyCache = "", dynamic funDataCache(List<T>?)?, bool isShowError = true})
→ Future<void>
-
-
safeCallLocalCache<T>(T? response)
→ Future<Either<FetchFailure, T>>
-
-
safeCallMessageStatus<T>({required Either<FetchFailure, BaseObjectResponse<T>> response, bool isMessageFromData = true, bool isShowError = true})
→ Future<Either<FetchFailure, String?>>
-
-
safeCallObjectStatus<T>({required Either<FetchFailure, BaseObjectResponse<T?>> response, required dynamic funError(FetchFailure), required dynamic funDataServer(FetchData<T>), dynamic funSuccess(FetchData<T>)?, String keyCache = "", dynamic funDataCache(T?)?, bool isShowError = true})
→ Future<void>
-
-
safeCallReportStatus<T>({required Either<FetchFailure, BaseListResponse<T>?> response, required dynamic funError(FetchFailure), required dynamic funDataServer(FetchData<List<T>>), dynamic funSuccess(FetchData<List<T>>)?, bool isShowError = true})
→ Future<void>
-
-
safeDataCache<T>({required dynamic funCallBack(), bool? isDataCache = false})
→ void
-
-
safeFetch<T>(Future<T> call())
→ Future<Either<FetchFailure, T>>
-
-
safeFetchV2<T>(Future<T> call())
→ Future<Either<FetchFailure, T>>
-
-
safeResponseDataCache<T>({required String? keyCache, required dynamic funCallBack(T?)})
→ Future<void>
-
-
safeResponseDataServer<T>({required T? dataServer, required dynamic funCallBack(T?)})
→ Future<void>
-
-
safeResponseError({required TypeError typeError, FetchFailure? errorServer, FetchFailure? errorWarning, FetchFailure? errorUnknow, bool? isShowError = true})
→ Future<FetchFailure>
-
-
saveCacheData<T>({required String? key, T? data})
→ Future<void>
-
-
toString()
→ String
-
A string representation of this object.
inherited