element property

  1. @experimental
MethodElement2? 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

@experimental
MethodElement2? get element;