@override void prePaint(Canvas canvas, Offset offset) { if (shouldClip) { canvas.clipRect(offset & size); } }