paintColorFilter method
Implementation
void paintColorFilter(PaintingContext context, Offset offset, PaintingContextCallback callback) {
ColorFilter? colorFilter = renderStyle.colorFilter;
if (colorFilter != null) {
_colorFilterLayer.layer = context.pushColorFilter(offset, colorFilter, callback, oldLayer: _colorFilterLayer.layer);
} else {
callback(context, offset);
}
}