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({
  super.child,
  double? widthFactor,
  double? heightFactor,
  super.alignment,
  super.textDirection,
}) : assert(widthFactor == null || widthFactor >= 0.0),
     assert(heightFactor == null || heightFactor >= 0.0),
     _widthFactor = widthFactor,
     _heightFactor = heightFactor;