IndexedSemantics constructor Null safety

const IndexedSemantics(
  1. {Key? key,
  2. required int index,
  3. Widget? child}
)

Creates a widget that annotated the first child semantics node with an index.

index must not be null.

Implementation

const IndexedSemantics({
  super.key,
  required this.index,
  super.child,
}) : assert(index != null);