ClipRRectLayer constructor

ClipRRectLayer({
  1. RRect? clipRRect,
  2. Clip clipBehavior = Clip.antiAlias,
})

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 != Clip.none);