prePaint method

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

Implementation

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