clip method

  1. @override
void clip(
  1. Canvas canvas
)
override

Apply clip mask to the canvas.

The mask must be in the viewport's local coordinate system, where the top left corner of the viewport has coordinates (0, 0). The overall size of the clip mask's shape must match the size of the viewport.

This API must be implemented by all viewports.

Implementation

@override
void clip(Canvas canvas) => canvas.clipPath(_clipPath, doAntiAlias: false);