KeyedSubtree constructor Null safety

const KeyedSubtree(
  1. {Key? key,
  2. required Widget child}
)

Creates a widget that builds its child.

Implementation

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