RenderSizedOverflowBox constructor

RenderSizedOverflowBox({RenderBox child, @required Size requestedSize, AlignmentGeometry alignment: Alignment.center, TextDirection textDirection })

Creates a render box of a given size that lets its child overflow.

The requestedSize and alignment arguments must not be null.

The textDirection argument must not be null if the alignment is direction-sensitive.

Implementation

RenderSizedOverflowBox({
  RenderBox child,
  @required Size requestedSize,
  AlignmentGeometry alignment = Alignment.center,
  TextDirection textDirection,
}) : assert(requestedSize != null),
     _requestedSize = requestedSize,
     super(child: child, alignment: alignment, textDirection: textDirection);