debugLabel property Null safety

String? debugLabel

A debug label for this widget.

Not used for anything except to be printed in the diagnostic output from toString or toStringDeep.

To get a string with the entire tree, call debugDescribeFocusTree. To print it to the console call debugDumpFocusTree.

Defaults to null.

Implementation

String? get debugLabel => _debugLabel ?? focusNode?.debugLabel;