onLeavesStyleMutation method

List<Fragment>? onLeavesStyleMutation(
  1. FluentDocument document,
  2. List<Fragment> leaves,
  3. void mutator(
    1. Fragment
    )
)

Intercepts an inline style mutation on a list of fragments. Return the modified/new fragments if handled, null otherwise.

Implementation

List<Fragment>? onLeavesStyleMutation(FluentDocument document, List<Fragment> leaves, void Function(Fragment) mutator) => null;