Filter class Null safety

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.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 to value.
factory
Filter.greaterThan(String field, dynamic value)
Filter where the field is greater than the specified value
factory
Filter.greaterThanOrEquals(String field, dynamic value)
Filter where the field is less than or equals to the specified value
factory
Filter.inList(String field, List list)
Filter where the field is in the list of values
factory
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 specified value.
factory
Filter.lessThanOrEquals(String field, dynamic value)
Filter where the field value is less than or equals to the specified value.
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 using regExp regular expression. [...]
factory
Filter.not(Filter filter)
Record must not match the given filter.
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
A string representation of this object. [...]
inherited

Operators

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