BaseRemoteData class

Annotations
  • @Singleton()

Constructors

BaseRemoteData(AuthLocalDataSource _authLocal)

Properties

dio ↔ Dio
getter/setter pair
getOptionsRefreshToken → Options
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

catchDioException({required DioException exception, required String gateway}) → Response
deleteRoute(String gateway, {String? params, String? query, Map<String, dynamic>? body, FormData? formData}) Future<Response>
downloadFile(String url, String path, Function onReceive) Future<Response>
getHeaders() → dynamic
getOptions() → Options
getRoute(String gateway, {String params = '', String? query}) Future<Response>
initialize() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchRoute(String gateway, {String? query, Map<String, dynamic>? body}) Future<Response>
postFormData(String gateway, FormData formData) Future<Response>
postRoute(String gateway, {Map<String, dynamic>? body, Map<String, dynamic>? queryParameters}) Future<Response>
putFormData(String gateway, FormData formData) Future<Response>
putRoute(String gateway, Map<String, dynamic> body) Future<Response>
toString() String
A string representation of this object.
inherited

Operators

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