showName property

  1. @override
bool get showName
override

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;
}