BaseApi class abstract

Implementers

Constructors

BaseApi.new({required PreferencesSettings settings})

Properties

baseUrl Future<String>
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
settings PreferencesSettings
final

Methods

cleanEntity(Map<String, dynamic> params) Map<String, dynamic>
delete(String endpoint, {bool includeToken = true}) Future<Response>
get(String endpoint, {bool includeToken = true}) Future<Response>
getHeaders({bool includeToken = true}) Map<String, String>
getUrl({String? endUrl}) Future<Uri>
handleFilters(String url, Map<String, dynamic> filters) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseUrl(String url) Uri
post(String endpoint, {bool includeToken = true, Map<String, dynamic>? body, Map<String, String>? headers}) Future<Response>
put(String endpoint, {bool includeToken = true, Map<String, dynamic>? body}) Future<Response>
toString() String
A string representation of this object.
inherited

Operators

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

Constants

ID → const String
ID2 → const String