clipRect abstract method

void clipRect({
  1. Rect? rect,
})

Indicates that a rectangular clip is expected next.

The next rectangular clip is examined. Any arguments that are passed to this method are compared to the actual Canvas.clipRect call's argument and any mismatches result in failure.

If no call to Canvas.clipRect was made, then this results in failure.

Any calls made between the last matched call (if any) and the Canvas.clipRect call are ignored.

Implementation

void clipRect({ Rect? rect });