paintColorFilter method

void paintColorFilter(
  1. PaintingContext context,
  2. Offset offset,
  3. PaintingContextCallback callback
)

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);
  }
}