IndexedStack constructor Null safety

IndexedStack(
  1. {Key? key,
  2. AlignmentGeometry alignment = AlignmentDirectional.topStart,
  3. TextDirection? textDirection,
  4. StackFit sizing = StackFit.loose,
  5. int? index = 0,
  6. List<Widget> children = const <Widget>[]}
)

Creates a Stack widget that paints a single child.

The index argument must not be null.

Implementation

IndexedStack({
  super.key,
  super.alignment,
  super.textDirection,
  StackFit sizing = StackFit.loose,
  this.index = 0,
  super.children,
}) : super(fit: sizing);