ClipRSuperellipseLayer constructor
- RSuperellipse? clipRSuperellipse,
- Clip clipBehavior = Clip.antiAlias,
Creates a layer with a rounded-rectangular clip.
The clipRSuperellipse
and clipBehavior
properties must be non-null before the
compositing phase of the pipeline.
Implementation
ClipRSuperellipseLayer({RSuperellipse? clipRSuperellipse, Clip clipBehavior = Clip.antiAlias})
: _clipRSuperellipse = clipRSuperellipse,
_clipBehavior = clipBehavior,
assert(clipBehavior != Clip.none);