getExtendedDisplayName method

  1. @override
String getExtendedDisplayName(
  1. String? shortName
)
inherited

Returns a display name for the given element that includes the path to the compilation unit in which the type is defined. If shortName is null then displayName will be used as the name of this element. Otherwise the provided name will be used.

Implementation

@override
String getExtendedDisplayName(String? shortName) {
  shortName ??= displayName;
  var source = this.source;
  return "$shortName (${source?.fullName})";
}