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({
  List<RenderBox>? children,
  AlignmentGeometry alignment = AlignmentDirectional.topStart,
  TextDirection? textDirection,
  int? index = 0,
}) : _index = index,
     super(
       children: children,
       alignment: alignment,
       textDirection: textDirection,
     );