clipPath abstract method

void clipPath({
  1. Matcher? pathMatcher,
})

Indicates that a path clip is expected next.

The next path clip is examined. The path that is passed to the actual Canvas.clipPath call is matched using pathMatcher.

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

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

Implementation

void clipPath({ Matcher? pathMatcher });