invertedEffects top-level property
Facet<List<StateEffect> Function(Transaction), List<List<StateEffect> Function(Transaction)> >
invertedEffects
final
This facet provides a way to register functions that, given a transaction, provide a set of effects that the history should store when inverting the transaction.
This can be used to integrate some kinds of effects in the history, so that they can be undone (and redone again).
Implementation
final invertedEffects = Facet.define<
List<StateEffect<dynamic>> Function(txn.Transaction),
List<List<StateEffect<dynamic>> Function(txn.Transaction)>>(
FacetConfig(
combine: (values) => values.toList(),
),
);