toDescription method

  1. @override
String toDescription()
override

Returns a description with a short summary of the node itself not including children or properties.

Implementation

@override
String toDescription() {
  if (description != null) {
    return description!;
  }

  if (ifNull != null && value == null) {
    return ifNull!;
  }

  String result = valueToString();
  if (result.isEmpty && ifEmpty != null) {
    result = ifEmpty!;
  }
  return result;
}