element property

MethodElement? get element

The element associated with the expression based on the static types.

Returnsnull if the AST structure hasn't been resolved, or there's no meaningful element to return. The latter case can occur, for example, when this is a non-compound assignment expression, or when the method referred to couldn't be resolved.

Implementation

MethodElement? get element;