DVFilter class sealed

Which records an operation applies to: a tree of comparisons, rather than a WHERE string only a SQL engine could run.

It compares as SQL does: a comparison against a missing or null value never matches, DVFilter.isNull is how null is found.

Constructors

DVFilter.all(List<DVFilter> filters)
Every one of filters. None at all matches everything, and is refused by an update or a delete.
const
factory
DVFilter.any(List<DVFilter> filters)
At least one of filters.
const
factory
DVFilter.compare(String field, DVCompare compare, Object? value)
field compared with value by compare.
const
factory
DVFilter.equals(String field, Object? value)
field equal to value.
factory
DVFilter.isNotNull(String field)
field present and not null.
factory
DVFilter.isNull(String field)
field missing or null.
const
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
True when the filter picks every record.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

matches(Map<String, Object?> record) → bool
Whether record is one of the records this filter picks.
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 ==(Object other) → bool
The equality operator.
inherited