clip method

void clip([
  1. Path2D? path,
  2. CanvasFillRule? fillRule = CanvasFillRule.nonzero
])

Implementation

void clip(
        [Path2D? path, CanvasFillRule? fillRule = CanvasFillRule.nonzero]) =>
    js_util.callMethod(this, 'clip', [path, fillRule?.value]);