CoffeeService class
- Inheritance
-
- Object
- CoffeeRequest
- CoffeeService
Constructors
Properties
- baseUrl ↔ String
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient → Client
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
auth<
T extends CoffeeModel> () → CoffeeAuthRequest< T> - Service to handle authentication
-
create(
String endpoint, Map< String, dynamic> json, [bool isFormData = false]) → Future<Map< String, dynamic> > -
Creates a new register on a specific endpoint.
inherited
-
delete(
String endpoint, dynamic identifier) → Future< bool> -
Deletes a register on a specific endpoint.
inherited
-
fileStorage(
) → CoffeeFileStorage - Provides access to file storage functionalities.
-
get<
T extends CoffeeModel> (String endpoint, [List< CoffeeQueryFilter> ? args]) → CoffeeRequestGet<T> -
Retrieves a CoffeeRequestGet instance configured for querying a specified API
endpoint
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save<
T> ({required String endpoint, required Map< String, dynamic> json, required T fromJson(Map<String, dynamic> ), bool isFormData = false}) → SaveResponse<T> -
Saves a CoffeeModel instance to the API.
inherited
-
setBaseApiUrl(
String newApiBaseUrl) → CoffeeRequest -
Sets the base URL for the API requests.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
String endpoint, Map< String, dynamic> json, [bool isFormData = false]) → Future<Map< String, dynamic> > -
Updates a register on a specific endpoint.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited