process method

  1. @override
void process(
  1. Picture pic,
  2. Canvas canvas
)
override

Implementation

@override
void process(Picture pic, Canvas canvas) {
  canvas.saveLayer(Rect.largest, _shadowPaint);
  canvas.translate(offset.dx, offset.dy);
  canvas.drawPicture(pic);
  canvas.restore();
}