showName property Null safety
override
Whether the name of the property should be shown when showing the default view of the tree.
This could be set to false (hiding the name) if the value's description will make the name self-evident.
Implementation
@override
bool get showName {
if (value == null || ((value ?? false) && ifTrue == null) || (!(value ?? true) && ifFalse == null)) {
// We are missing a description for the flag value so we need to show the
// flag name. The property will have DiagnosticLevel.hidden for this case
// so users will not see this the property in this case unless they are
// displaying hidden properties.
return true;
}
return super.showName;
}