RenderIndexedSemantics constructor Null safety

RenderIndexedSemantics(
  1. {RenderBox? child,
  2. required int index}
)

Creates a render object that annotates the child semantics with an index.

Implementation

RenderIndexedSemantics({
  RenderBox? child,
  required int index,
}) : assert(index != null),
     _index = index,
     super(child);