target property

Expression? get target

The expression producing the object on which the method is defined, or null if there's 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;