FilterCriteria<T> class

Represents a filter criterion for a specific field.

This class encapsulates the information needed to filter a collection based on a field value and comparison operator.

Example:

final criteria = FilterCriteria(
  field: 'price',
  comparator: '>=',
  value: 100.0,
);

Constructors

FilterCriteria({required String field, required String comparator, required T value})
Creates a FilterCriteria instance.
const

Properties

comparator String
The comparison operator to use.
final
field String
The name of the field to filter.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The value to compare against.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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