SizedOverflowBox constructor Null safety

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

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

The size argument must not be null.

Implementation

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