WidgetInspector constructor Null safety

const WidgetInspector(
  1. {Key? key,
  2. required Widget child,
  3. required InspectorSelectButtonBuilder? selectButtonBuilder}
)

Creates a widget that enables inspection for the child.

The child argument must not be null.

Implementation

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