ApiManager class Null safety

Created by Taohid on 01, March, 2020 Email: taohid32@gmail.com

Constructors

ApiManager({BaseOptions? options})
factory

Properties

hashCode int
The hash code for this object.
read-onlyinherited
options BaseOptions
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addInterceptor(Interceptor interceptor) → void
disableSSLCheck() → void
download(String urlPath, dynamic savePath, {ProgressCallback? onReceiveProgress, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, bool deleteOnError = true, String lengthHeader = Headers.contentLengthHeader, dynamic data, Options? options}) Future<Response?>
enableAuthTokenCheck(AuthTokenListener authTokenListener) → void
enableLogging({bool request = false, bool requestHeader = false, bool requestBody = false, bool responseHeader = false, bool responseBody = false, bool error = false, dynamic logPrint(Object object)}) → void
getMultipartFromBytes(Uint8List bytes, String fileName) Future<MultipartFile>
getMultipartFromFile(String filePath) Future<MultipartFile>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
request<T>({required String route, required RequestType requestType, Map<String, dynamic>? requestParams, dynamic requestBody, CancelToken? cancelToken, bool isAuthRequired = false, ResponseBodySerializer? responseBodySerializer, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<ApiResponse<T>>
toString() String
A string representation of this object.
inherited

Operators

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

Constants

HTTP_SUCCESS_CODE → const List<int>
http success code list to check if request response success or not
[200, 201, 202, 203, 204, 205, 206, 207, 208, 226]