prePaint method

  1. @override
void prePaint(
  1. Canvas canvas,
  2. Offset offset
)
inherited

Implementation

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