CoffeeRequest class

Implementers

Constructors

CoffeeRequest()

Properties

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

Methods

create(String endpoint, Map<String, dynamic> json, [bool isFormData = false]) Future<Map<String, dynamic>>
Creates a new register on a specific endpoint.
delete(String endpoint, dynamic identifier) Future<bool>
Deletes a register on a specific endpoint.
get<T extends CoffeeModel>(String endpoint, [List<CoffeeQueryFilter>? args]) CoffeeRequestGet<T>
Retrieves a CoffeeRequestGet instance configured for querying a specified API endpoint.
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.
setBaseApiUrl(String newApiBaseUrl) CoffeeRequest
Sets the base URL for the API requests.
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.

Operators

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