RenderIndexedStack constructor Null safety

RenderIndexedStack(
  1. {List<RenderBox>? children,
  2. AlignmentGeometry alignment = AlignmentDirectional.topStart,
  3. TextDirection? textDirection,
  4. int? index = 0}
)

Creates a stack render object that paints a single child.

If the index parameter is null, nothing is displayed.

Implementation

RenderIndexedStack({
  super.children,
  super.alignment,
  super.textDirection,
  int? index = 0,
}) : _index = index;