element property

  1. @experimental
Element? get element

The element referenced by this pattern.

Returns null if either name doesn't resolve to an element or the AST structure hasn't been resolved.

In valid code this is either a LocalVariableElement or a FormalParameterElement.

Implementation

@experimental
Element? get element;