ClipRect constructor Null safety
- {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. If clipBehavior is Clip.none, no clipping will be applied.
Implementation
const ClipRect({
super.key,
this.clipper,
this.clipBehavior = Clip.hardEdge,
super.child,
}) : assert(clipBehavior != null);