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