changeFilter top-level property

Facet<dynamic Function(Transaction tr), List<dynamic Function(Transaction tr)>> changeFilter
final

Facet used to register change filters, which are called for each transaction (unless explicitly disabled), and can suppress part of the transaction's changes.

Such a function can return true to indicate that it doesn't want to do anything, false to completely stop the changes in the transaction, or a set of ranges in which changes should be suppressed. Such ranges are represented as a list of integers, with each pair of two numbers indicating the start and end of a range.

Implementation

final Facet<
  dynamic Function(Transaction tr),
  List<dynamic Function(Transaction tr)>
>
changeFilter = Facet.define();