RenderPositionedBox constructor

RenderPositionedBox({
  1. required Alignment alignment,
  2. RenderBox? child,
})

Stores the alignment and adopts child when given.

Implementation

RenderPositionedBox({required Alignment alignment, RenderBox? child})
  : _alignment = alignment {
  setSingleRenderObjectChild(this, child);
}