element property Null safety

Element? element

Return the element referenced by this annotation.

In valid code this element can be a PropertyAccessorElement getter of a constant top-level variable, or a constant static field of a class; or a constant ConstructorElement.

In invalid code this element can be null, or a reference to any other element.


Element? get element;