ClipOval constructor Null safety

const ClipOval(
  1. {Key? key,
  2. CustomClipper<Rect>? clipper,
  3. Clip clipBehavior = Clip.antiAlias,
  4. Widget? child}

Creates an oval-shaped clip.

If clipper is null, the oval will be inscribed into 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.


const ClipOval({
  Key? key,
  this.clipBehavior = Clip.antiAlias,
  Widget? child,
}) : assert(clipBehavior != null),
     super(key: key, child: child);