resolvePaint method
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;
}