ApiLayer class

Constructors

ApiLayer({required Map<String, dynamic> env, Map<String, String>? customHeader, String? bearerToken, BuildContext? context, bool skipLoading = false})
ApiLayer.custom(String urlBase, {String? environment, Map<String, String>? header})
Call External Apis

Properties

context BuildContext?
getter/setter pair
environment String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
getter/setter pair
loading Loading?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipFingerPrintValidation bool
getter/setter pair
urlBase String
getter/setter pair

Methods

callApi({required EndPointData endpointData, Map<String, dynamic>? query, Map<String, dynamic>? body, Map<String, String>? replacementParams, FileModel? fileModel, String? savePath}) Future<ResponseApi>
downloadFile(String url, Map<String, String>? headers, Map<String, dynamic>? queryParams, String? savePath) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printCurlCommand(String url, Map<String, String>? headers, Map<String, dynamic>? queryParams) → void
toString() String
A string representation of this object.
inherited

Operators

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