QueryField<T> class
A field used to query models.
Contains methods for filtering and sorting query results.
Constructors
- QueryField({required String fieldName, ModelFieldType? fieldType})
-
A field used to query models.
const
Properties
- fieldName → String
-
The name of the field to be queried on.
final
- fieldType → ModelFieldType?
-
Contains information about the model that this field represents.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ascending(
) → QuerySortBy - Sorts models by the given field in ascending order
-
beginsWith(
String value) → QueryPredicateOperation - A beginsWith operation.
-
between(
Comparable< T> start, Comparable<T> end) → QueryPredicateOperation - A between operation.
-
contains(
String value) → QueryPredicateOperation - A contains operation.
-
descending(
) → QuerySortBy - Sorts models by the given field in descending order
-
eq(
T value) → QueryPredicateOperation - An equal to operation.
-
ge(
Comparable< T> value) → QueryPredicateOperation - A greater than or equal to operation.
-
gt(
Comparable< T> value) → QueryPredicateOperation - A greater than operation.
-
le(
Comparable< T> value) → QueryPredicateOperation - A less than or equal to operation.
-
lt(
Comparable< T> value) → QueryPredicateOperation - A less than operation.
-
ne(
T value) → QueryPredicateOperation - A not equal to operation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator <(
Comparable< T> value) → QueryPredicateOperation - A less than operation.
-
operator <=(
Comparable< T> value) → QueryPredicateOperation - A less than or equal to operation.
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
Comparable< T> value) → QueryPredicateOperation - A greater than operation.
-
operator >=(
Comparable< T> value) → QueryPredicateOperation - A greater than or equal to operation.