declaredElement2 property

  1. @experimental
LocalVariableElement2? get declaredElement2

The element associated with this declaration.

Returns null if either this node corresponds to a list of declarations or if the AST structure hasn't been resolved.

Implementation

@experimental
LocalVariableElement2? get declaredElement2;