target property

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;