element property

  1. @Deprecated('Use element2 instead')
Element? get element

The element referenced by this pattern, or 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 ParameterElement.

Implementation

@Deprecated('Use element2 instead')
Element? get element;