resolvePaint method

  1. @override
void resolvePaint(
  1. Paint paint
)
override

Sets the paint's color filter to the colorFilter effect.

The paint parameter is the paint object to apply the filter to.

If the filter is not valid, i.e., isValid returns false, this method does nothing.

Implementation

@override
void resolvePaint(Paint paint) {
  if (!isValid) return;
  paint.colorFilter = colorFilter;
}