getName method

  1. @override
String getName()
inherited

Gets the name of the declared element.

Returns:

  • The identifier name as it appears in source code
  • For classes: the class name ("MyClass")
  • For functions: the function name ("calculate")
  • For variables: the variable name ("count")

Note: The exact format may vary by implementation but should always match the source declaration.

Implementation

@override
String getName() => _name;