elementName property
String
elementName
Returns the fully qualified name of this element.
For example, a method called "doSomething" that is part of the class
"MyClass" would have "MyClass.doSomething" as its elementName
.
Implementation
String get elementName {
if (type == SourceElementType.constructorType) {
// Constructors already have the name of the class in them.
return name;
}
return className.isEmpty ? name : '$className.$name';
}