transactionFilter top-level property
Facet<dynamic Function(Transaction tr), List<dynamic Function(Transaction tr)> >
transactionFilter
final
Facet used to register a hook that gets a chance to update or replace transaction specs before they are applied.
This will only be applied for transactions that don't have filter
set to false. You can either return a single transaction spec
(possibly the input transaction), or a list of specs.
When possible, it is recommended to avoid accessing Transaction.state
in a filter, since it will force creation of a state that will then be
discarded again, if the transaction is actually filtered.
Implementation
final Facet<
dynamic Function(Transaction tr),
List<dynamic Function(Transaction tr)>
>
transactionFilter = Facet.define();