resolvePaint method
Sets the paint's filter quality, image filter, and mask filter for the blur 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(ui.Paint paint) {
if (!isValid) {
return;
}
paint.filterQuality = ui.FilterQuality.low;
paint.imageFilter = _imageFilter;
paint.maskFilter = _maskFilter;
}