element property

Element? get element

The element to which name resolves.

In valid code, this is a PrefixElement. It can be another kind of element in invalid code.

Returns null if the reference hasn't been resolved or name can't be resolved.

Implementation

Element? get element;