Query class

Helper class to generate query strings.

Properties

attribute String?
final
hashCode int
The hash code for this object.
no setterinherited
method String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values → dynamic
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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

Static Methods

and(List<String> queries) String
between(String attribute, dynamic start, dynamic end) String
Filter resources where attribute is between start and end (inclusive).
contains(String attribute, dynamic value) String
Filter resources where attribute contains value value can be a single value or a list.
cursorAfter(String id) String
Return results after id.
cursorBefore(String id) String
Return results before id.
endsWith(String attribute, String value) String
Filter resources where attribute ends with value.
equal(String attribute, dynamic value) String
Filter resources where attribute is equal to value.
greaterThan(String attribute, dynamic value) String
Filter resources where attribute is greater than value.
greaterThanEqual(String attribute, dynamic value) String
Filter resources where attribute is greater than or equal to value.
isNotNull(String attribute) String
Filter resources where attribute is not null.
isNull(String attribute) String
Filter resources where attribute is null.
lessThan(String attribute, dynamic value) String
Filter resources where attribute is less than value.
lessThanEqual(String attribute, dynamic value) String
Filter resources where attribute is less than or equal to value.
limit(int limit) String
Return only limit results.
notEqual(String attribute, dynamic value) String
Filter resources where attribute is not equal to value.
offset(int offset) String
Return results from offset.
or(List<String> queries) String
orderAsc(String attribute) String
Sort results by attribute ascending.
orderDesc(String attribute) String
Sort results by attribute descending.
Filter resources where by searching attribute for value.
select(List<String> attributes) String
Specify which attributes should be returned by the API call.
startsWith(String attribute, String value) String
Filter resources where attribute starts with value.