SliverClipRect constructor
const
SliverClipRect({
- Key? key,
- CustomClipper<
Rect> ? clipper, - Clip clipBehavior = Clip.hardEdge,
- Widget? child,
Creates a rectangular clip.
If clipper is null, the clip will match the layout size and position of the child.
The clipBehavior argument must not be null or Clip.none.
Implementation
const SliverClipRect(
{Key? key,
this.clipper,
this.clipBehavior = Clip.hardEdge,
Widget? child})
: assert(clipBehavior != null),
super(key: key, child: child);