RenderFractionallySizedOverflowBox constructor
Creates a render box that sizes its child to a fraction of the total available space.
If non-null, the widthFactor
and heightFactor
arguments must be
non-negative.
The alignment
must not be null.
The textDirection
must be non-null if the alignment
is
direction-sensitive.
Implementation
RenderFractionallySizedOverflowBox({
RenderBox child,
double widthFactor,
double heightFactor,
AlignmentGeometry alignment = Alignment.center,
TextDirection textDirection,
}) : _widthFactor = widthFactor,
_heightFactor = heightFactor,
super(child: child, alignment: alignment, textDirection: textDirection) {
assert(_widthFactor == null || _widthFactor >= 0.0);
assert(_heightFactor == null || _heightFactor >= 0.0);
}