element2 property

  1. @experimental
Element2? get element2

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 LocalVariableElement2 or a FormalParameterElement.

Implementation

@experimental
Element2? get element2;