realTarget property

  1. @override
ExpressionImpl? realTarget
override

Return the expression used to compute the receiver of the invocation.

If this invocation is not part of a cascade expression, then this is the same as target. If this invocation is part of a cascade expression, then the target stored with the cascade expression is returned.

Implementation

@override
ExpressionImpl? get realTarget {
  if (isCascaded) {
    return _ancestorCascade.target;
  }
  return _target;
}