Filter class abstract
Filter for searching into the database
Don't subclass
- Available extensions
Constructors
-
Filter.and(List<
Filter> filters) -
Record must match all of the given
filters.factory - Filter.arrayContains(String field, Object value)
-
Filter where the
fieldis a list that contains a given valuefactory -
Filter.arrayContainsAll(String field, List<
Object> values) -
Filter where the
fieldis a list that contains all valuesfactory -
Filter.arrayContainsAny(String field, List<
Object> values) -
Filter where the
fieldis a list that contains any of the given valuesfactory - Filter.byKey(Object? key)
-
Filter by
key.factory -
Filter.custom(bool matches(RecordSnapshot<
Key?, Value?> 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, Object? value, {bool? anyInList})
-
fieldvalue must be equals tovalue.factory - Filter.greaterThan(String field, Object? value)
-
Filter where the
fieldis greater than the specifiedvaluefactory - Filter.greaterThanOrEquals(String field, Object? value)
-
Filter where the
fieldis less than or equals to the specifiedvaluefactory -
Filter.inList(String field, List<
Object> list) -
Filter where the
fieldis in thelistof valuesfactory - Filter.isNull(String field)
-
Filter where the
fieldvalue is null.factory - Filter.lessThan(String field, Object? value)
-
Filter where the
fieldvalue is less than the specifiedvalue.factory - Filter.lessThanOrEquals(String field, Object? value)
-
Filter where the
fieldvalue is less than or equals to the specifiedvalue.factory - Filter.matches(String field, String pattern, {bool? anyInList})
-
Use RegExp pattern matching for the given
fieldwhich has to be a string.factory - Filter.matchesRegExp(String field, RegExp regExp, {bool? anyInList})
-
Filter
fieldvalue usingregExpregular expression.factory - Filter.not(Filter filter)
-
Record must not match the given
filter.factory - Filter.notEquals(String field, Object? value)
-
Filter where the
fieldvalue is not equals to the specified value.factory - Filter.notNull(String field)
-
Filter where the
fieldvalue 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.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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 &(
Filter other) → Filter -
Available on Filter, provided by the SembastFilterCombination extension
Record must match this andotherfilter. -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator |(
Filter other) → Filter -
Available on Filter, provided by the SembastFilterCombination extension
Record must match this orotherfilter.