displayString property Null safety
Return a user visible string used to describe this target kind.
Implementation
String get displayString {
switch (this) {
case TargetKind.classType:
return 'classes';
case TargetKind.enumType:
return 'enums';
case TargetKind.extension:
return 'extensions';
case TargetKind.field:
return 'fields';
case TargetKind.function:
return 'top-level functions';
case TargetKind.library:
return 'libraries';
case TargetKind.getter:
return 'getters';
case TargetKind.method:
return 'methods';
case TargetKind.mixinType:
return 'mixins';
case TargetKind.parameter:
return 'parameters';
case TargetKind.setter:
return 'setters';
case TargetKind.topLevelVariable:
return 'top-level variables';
case TargetKind.type:
return 'types (classes, enums, mixins, or typedefs)';
case TargetKind.typedefType:
return 'typedefs';
}
}