matches method
Returns true when the nested value (or any value in its collection) matches filter.
Implementation
@override
/// Returns true when the nested value (or any value in its collection) matches [filter].
bool matches(TEntity item) {
final value = field.getValue!(item);
if (value == null) return false;
if (value is Iterable) {
return value.any((element) => filter.matches(element));
} else {
return filter.matches(value);
}
}