staticElement property Null safety
Return the element associated with the expression based on the static
types, or null
if the AST structure has not been resolved, or there is
no meaningful static element to return (e.g. because this is a
non-compound assignment expression, or because the method referred to
could not be resolved).
Implementation
MethodElement? get staticElement;
@Deprecated('Clients should not build AST manually')
Set the element associated with the expression based on static types to
the given element
.
Implementation
@Deprecated('Clients should not build AST manually')
set staticElement(MethodElement? element);