onPaintMutatorChanged method

  1. @override
void onPaintMutatorChanged(
  1. ShapePaintMutator mutator
)

Called whenever a new paint mutator is added/removed from the shape paints (for example a linear gradient is added to a stroke).

Implementation

@override
void onPaintMutatorChanged(ShapePaintMutator mutator) {
  // The transform affects stroke property may have changed as we have a new
  // mutator.
  paintChanged();
}