getExtendedDisplayName method

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

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.


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