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({
  Key? key,
  required this.index,
  Widget? child,
}) : assert(index != null),
     super(key: key, child: child);