target property Null safety

Expression? target

Return the expression producing the object on which the method is defined, or null if there is no target (that is, the target is implicitly this) or if this method invocation is part of a cascade expression.

Use realTarget to get the target independent of whether this is part of a cascade expression.

Implementation

Expression? get target;
void target=(Expression? expression)
@Deprecated('Clients should not build AST manually')

Set the expression producing the object on which the method is defined to the given expression.

Implementation

@Deprecated('Clients should not build AST manually')
set target(Expression? expression);