ApiClient class

Constructors

ApiClient(String baseUrl, {String? bearerToken})

Properties

bearerToken String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteData(String endpoint, {Map<String, dynamic>? headers}) Future<Response>
getData(String endpoint, {Map<String, dynamic>? headers, CancelToken? cancelToken}) Future<Response?>
handleException(DioError e) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postData(String endpoint, dynamic data, {Map<String, dynamic>? headers}) Future<Response?>
postMultipartData(String endpoint, {Map<String, dynamic>? headers, required File file, required String paramName, required String filename}) Future<Response?>
toString() String
A string representation of this object.
inherited

Operators

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