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