element property
Returns 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.
Implementation
@Deprecated('Use element2 instead')
Element? get element;