ApiClient class

Constructors

ApiClient()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAPI(String url, dynamic data, {bool hasHeader = true, int timeout = 20, bool isFullPath = false}) Future<BaseResponse>
getAPI2(String url, {int timeout = 20, bool hasHeader = true, bool isFullPath = false}) Future<String>
getString(String url, {int timeout = 20}) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postAPI(String url, String method, dynamic data, {bool hasHeader = true, bool fullPath = false, int timeout = 20, Map<String, String>? body, List<String>? files, List<FileByte>? realFiles, String paramFile = 'attachment[file][]'}) Future<BaseResponse>
postAPI2(String url, {int timeout = 20, String method = 'POST', bool isFullPath = false, Map<String, String>? body, Map<String, String>? header, bool hasHeader = true}) Future<String>
toString() String
A string representation of this object.
inherited
trackApp(String path, {String? urlPath, String method = 'onTap', String? clientKey}) Future<void>

Operators

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

Static Properties

showLog bool?
getter/setter pair