staticElement property Null safety

MethodElement? staticElement

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;
void staticElement=(MethodElement? element)
@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);