RenderPositionedBox constructor

RenderPositionedBox(
  1. {RenderBox child,
  2. double widthFactor,
  3. double heightFactor,
  4. AlignmentGeometry alignment: Alignment.center,
  5. TextDirection textDirection}
)

Creates a render object that positions its child.

Implementation

RenderPositionedBox({
  RenderBox child,
  double widthFactor,
  double heightFactor,
  AlignmentGeometry alignment = Alignment.center,
  TextDirection textDirection,
}) : assert(widthFactor == null || widthFactor >= 0.0),
     assert(heightFactor == null || heightFactor >= 0.0),
     _widthFactor = widthFactor,
     _heightFactor = heightFactor,
     super(child: child, alignment: alignment, textDirection: textDirection);