Filter class
Filter for searching into the database
Don't subclass
Constructors
-
Filter.and(List<
Filter> filters) -
Record must match all of the given
filters
.factory -
Filter.byKey(dynamic key
) -
Filter by
key
. [...]factory -
Filter.custom(bool matches(RecordSnapshot record
) ) -
Custom filter, use with caution and do not modify record data as it
provides a raw access to the record internal value for efficiency.
factory
-
Filter.equals(String field,
dynamic value, {bool anyInList} ) -
field
value must be equals tovalue
.factory -
Filter.greaterThan(String field,
dynamic value ) -
Filter where the
field
is greater than the specifiedvalue
factory -
Filter.greaterThanOrEquals(String field,
dynamic value ) -
Filter where the
field
is less than or equals to the specifiedvalue
factory -
Filter.inList(String field,
List list ) -
Filter where the
field
is in thelist
of valuesfactory -
Filter.isNull(String field
) -
Filter where the
field
value is null.factory -
Filter.lessThan(String field,
dynamic value ) -
Filter where the
field
value is less than the specifiedvalue
.factory -
Filter.lessThanOrEquals(String field,
dynamic value ) -
Filter where the
field
value is less than or equals to the specifiedvalue
.factory -
Filter.matches(String field,
String pattern, {bool anyInList} ) -
Use RegExp pattern matching for the given
field
which has to be a string. [...]factory -
Filter.matchesRegExp(String field,
RegExp regExp, {bool anyInList} ) -
Filter
field
value usingregExp
regular expression. [...]factory -
Filter.notEquals(String field,
dynamic value ) -
Filter where the
field
value is not equals to the specified value.factory -
Filter.notNull(String field
) -
Filter where the
field
value is not null.factory -
Filter.or(List<
Filter> filters) -
Record must match any of the given
filters
.factory
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other ) → bool -
The equality operator. [...]
inherited