BaseApiClient class

Constructors

BaseApiClient(Dio client, {String acceptLanguage = 'ru-ru'})

Properties

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

Methods

delete<T>(String action, {dynamic body, bool protected = false, bool verbose = false}) Future<Response<T>>
download(String url, String savePath, {void onReceiveProgress(int, int)?}) Future<Response>
get<T>(String action, {Map<String, dynamic>? params, bool protected = false, void onReceiveProgress(int, int)?, bool verbose = false}) Future<Response<T>>
getOptions({required bool protected}) Options
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<T>(String action, {dynamic body, bool protected = false, void onSendProgress(int, int)?, void onReceiveProgress(int, int)?, bool verbose = false}) Future<Response<T>>
put<T>(String action, {dynamic body, bool protected = false, void onSendProgress(int, int)?, void onReceiveProgress(int, int)?, bool verbose = false}) Future<Response<T>>
setAccessToken(String? token) → void
toString() String
A string representation of this object.
inherited

Operators

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