declaredElement property

VariablePatternElement? declaredElement

Return the element associated with this declaration, or null if either the variable name is _ (in which case no variable is defined) or the AST structure has not been resolved.

Implementation

VariablePatternElement? get declaredElement;