KeyedSubtree constructor Null safety

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

Creates a widget that builds its child.

Implementation

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