ClipPathLayer constructor
Creates a layer with a path-based clip.
The clipPath
and clipBehavior
properties must be non-null before the
compositing phase of the pipeline.
Implementation
ClipPathLayer({
Path? clipPath,
Clip clipBehavior = Clip.antiAlias,
}) : _clipPath = clipPath,
_clipBehavior = clipBehavior,
assert(clipBehavior != Clip.none);