ApiRequest class abstract

Constructors

ApiRequest()

Properties

cancelTokens Map<String, CancelToken>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
retryRouteCountMap Map<String, int>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelRequest(String url) → void
decodeHttpRequestResponse(Future apiCall, String uniqueKey, {String message = '', required void unAuthorizedCallBack()?}) Future<Either<Response, FailureState>>
getResponse({required String endPoint, required ApiMethods apiMethods, void unAuthorizedCallBack()?, Map<String, dynamic>? queryParams, dynamic body, Options? options, CacheConfig cacheConfig = const CacheConfig(), RetryConfig retryConfig = const RetryConfig(), bool hasInternet = true}) Future<Either<Response, FailureState>>
Executes an HTTP request and returns Either:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uploadAnyMultipleFile({required String endPoint, required List<File> files, required FormData formData, required UploadType uploadType, void unAuthorizedCallBack()?, required Options? options}) Future<Either<Response, FailureState>>
uploadAnySingleFile({required String endPoint, required File file, required FormData formData, required UploadType uploadType, void unAuthorizedCallBack()?}) Future<Either<Response, FailureState>>

Operators

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