predicate property

bool Function(Query<Object?> query)? predicate
final

A test of your own, run on each query that passed the other fields. Unset accepts every query.

It receives the query as Query<Object?>: one filter spans queries of many data types, so no narrower type parameter fits. Read query.queryKey, query.state or query.meta from it.

Implementation

final bool Function(Query<Object?> query)? predicate;