ApiClient class

Constructors

ApiClient()
factory

Properties

baseUrl String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
final
keyIsLogin String
getter/setter pair
keyTokenUser String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAPI(String path, dynamic data, {bool hasHeader = true, bool hasDomain = true, int timeout = 20}) Future<BaseResponse>
getFile(String url, {int timeout = 20}) Future<Uint8List?>
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, {dynamic hasHeader = true, Map<String, String>? body, List? realFiles, List<String>? files, String paramFile = 'file', int timeout = 20}) Future<BaseResponse>
postJsonAPI(String url, dynamic data, dynamic body, {bool hasHeader = true, int timeout = 20}) Future<BaseResponse>
postRealJsonAPI(String url, Map<String, String> headers, Map<String, dynamic> body, {int timeout = 20}) Future<Map<String, dynamic>>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

init(String baseUrl, {String? keyIsLogin, String? keyTokenUser}) → void