SemanticsDebugger constructor Null safety

const SemanticsDebugger(
  1. {Key? key,
  2. required Widget child,
  3. TextStyle labelStyle = const TextStyle(color: Color(0xFF000000), fontSize: 10.0, height: 0.8)}

Creates a widget that visualizes the semantics for the child.

The child argument must not be null.

labelStyle dictates the TextStyle used for the semantics labels.


const SemanticsDebugger({
  required this.child,
  this.labelStyle = const TextStyle(
    color: Color(0xFF000000),
    fontSize: 10.0,
    height: 0.8,
}) : assert(child != null),
     assert(labelStyle != null);