CoffeeRequestGet<T extends CoffeeModel> class

Constructors

CoffeeRequestGet(Client _httpClient, String _apiUrl, [List<CoffeeQueryFilter>? queryParameters])

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCaching({String key = ''}) CoffeeRequestGet<T>
Clears the cache for the data retrieval operation.
enableCaching({String key = ''}) CoffeeRequestGet<T>
Enables caching for the data retrieval operation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
returnListOf<T>(T fromJson(Map<String, dynamic>)) Future<List<T>>
Fetches and converts a list from the API.
returnPaginationListOf(T fromJson(Map<String, dynamic>), {CoffeePagination? pagination}) Future<FilterResponse<T>>
Fetches and converts a paginated list from the API.
returnSingleObjectOf(T fromJson(Map<String, dynamic>)) Future<T>
Fetches and converts a single object from the API.
returnSingleValue<Z>() Future<Z>
Returns a unique single value from the API.
setBaseApiUrl(String newApiBaseUrl) CoffeeRequestGet<T>
Sets the base URL for the API requests.
sortBy(dynamic property, SortDirection sort) CoffeeRequestGet<T>
Creates a filter for sorting.
toString() String
A string representation of this object.
inherited
where(dynamic type, WhereOperator operator, dynamic value) CoffeeRequestGet<T>
Creates a filter for exact condition searches.
whereContains(dynamic type, String value) CoffeeRequestGet<T>
Creates a filter for containment searches.
whereDate(dynamic type, WhereOperator operator, DateTime date, {String filterBy = 'full-date'}) CoffeeRequestGet<T>
Creates a filter for date searches.
whereIn(dynamic type, List values) CoffeeRequestGet<T>
Creates a filter for inclusion searches.
whereIs(dynamic type, bool value) CoffeeRequestGet<T>
Creates a filter for boolean condition searches.
whereNotIn(dynamic type, List values) CoffeeRequestGet<T>
Creates a filter for exclusion searches.
whereOr(List<List<CoffeeQueryFilter>> filters) CoffeeRequestGet<T>
Creates a filter for OR condition searches.
withQueryParameter(dynamic type, dynamic value) CoffeeRequestGet<T>
Creates a filter for query parameters.

Operators

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