SizedOverflowBox constructor Null safety

const SizedOverflowBox(
  1. {Key? key,
  2. required Size size,
  3. AlignmentGeometry alignment:,
  4. Widget? child}

Creates a widget of a given size that lets its child overflow.

The size argument must not be null.


const SizedOverflowBox({
  Key? key,
  required this.size,
  this.alignment =,
  Widget? child,
}) : assert(size != null),
     assert(alignment != null),
     super(key: key, child: child);