SizedOverflowBox constructor

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({
  Key key,
  @required this.size,
  this.alignment = Alignment.center,
  Widget child,
}) : assert(size != null),
     assert(alignment != null),
     super(key: key, child: child);