paintImageFilter method

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

Implementation

void paintImageFilter(PaintingContext context, Offset offset,
    PaintingContextCallback callback) {
  if (renderStyle.imageFilter != null) {
    _imageFilterLayer.layer ??= ImageFilterLayer();
    _imageFilterLayer.layer!.imageFilter = renderStyle.imageFilter;
    context.pushLayer(_imageFilterLayer.layer!, callback, offset);
  } else {
    callback(context, offset);
  }
}