ExistsOperator<T extends Object> class final

Field existence/absence filter.

Tests whether a field is present (non-null) or absent in the record.

Supported with: .exists factory method

Inheritance

Constructors

ExistsOperator(FilterField<T> field, {required bool exists})
Creates an existence filter for the specified field and exists condition.
const

Properties

exists → bool
Whether the field should exist (true) or not exist (false).
final
field → FilterField<T>
The field to check for existence.
final
hashCode → int
The hash code for this object.
no setterinherited
operator → FilterOperator
The existence operator used for this filter.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

matches(T other) → bool
Whether this filter matches the given other instance.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Converts this filter to JSON format for API queries.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited