element property Null safety

Element? element

Return the element associated with this directive, or null if the AST structure has not been resolved or if this directive could not be resolved.

Implementation

Element? get element;
void element=(Element? element)
@Deprecated('Clients should not build AST manually')

Set the element associated with this directive to the given element.

Implementation

@Deprecated('Clients should not build AST manually')
set element(Element? element);