getType method
Gets the runtime type of the declared element.
Returns:
- The Dart Type object representing the declaration's type
- For classes: the class type (MyClass)
- For functions: the function type (Function)
- For variables: the variable's declared type
Implementation
@override
Type getType() => _type;