declaredElement property

  1. @override
ExecutableElement? declaredElement
getter/setter pairoverride-getter

Return the element associated with this method, or null if the AST structure has not been resolved. The element can either be a MethodElement, if this represents the declaration of a normal method, or a PropertyAccessorElement if this represents the declaration of either a getter or a setter.

Implementation

@override
ExecutableElement? declaredElement;