pushClipPath method

EngineLayer pushClipPath (Path path, { Clip clipBehavior: Clip.antiAlias })

Pushes a path clip operation onto the operation stack.

Rasterization outside the given path is discarded.

See pop for details about the operation stack. See Clip for different clip modes. By default, the clip will be anti-aliased (clip = Clip.antiAlias).

Implementation

EngineLayer pushClipPath(Path path, {Clip clipBehavior = Clip.antiAlias}) {
  assert(clipBehavior != null);
  assert(clipBehavior != Clip.none);
  return _pushClipPath(path, clipBehavior.index);
}