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}) → Future<BaseResponse>
getAPI2(String url, {bool hasHeader = true}) → Future<String>
getFile(String url, {int timeout = 20}) → Future<Uint8List?>
getString(String url) → 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, Map<String, String>? body, List<String>? files, List<FileByte>? realFiles, String paramFile = 'attachment[file][]'}) → Future<BaseResponse>
postAPIOfTraceability(String url, String method, dynamic data, {bool hasHeader = true, Map<String, String>? body, List<String>? files, List<FileByte>? realFiles1, List<FileByte>? realFiles2, List<FileByte>? realFiles3, List<FileByte>? realFiles4, String paramFile1 = 'attachment[file][]', String paramFile2 = 'attachment[file][]', String paramFile3 = 'attachment[file][]', String paramFile4 = 'attachment[file][]'}) → Future<BaseResponse>
toString() → String
A string representation of this object.
inherited
trackApp(String path, {String method = 'onTap'}) → Future<void>

Operators

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