ExistsOperator<F extends FilterField> class final

A filter that matches based on field existence or absence.

Checks whether a field exists in the record or not, regardless of its value. Useful for filtering records based on the presence or absence of optional fields.

Supported with: .exists factory method

Inheritance

Constructors

ExistsOperator.new(F 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 → F
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

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

Operators

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