methodNameType property

DartType? methodNameType

The invoke type of the methodName.

If the target element is a MethodElement, this is the same as the staticInvokeType. If the target element is a getter, presumably returning an ExecutableElement so that it can be invoked in this MethodInvocation, then this type is the type of the getter, and the staticInvokeType is the invoked type of the returned element.

Implementation

DartType? get methodNameType => _methodNameType ?? staticInvokeType;
void methodNameType=(DartType? methodNameType)

Set the methodName invoke type, only if the target element is a getter. Otherwise, the target element itself is invoked, _methodNameType is null, and the getter will return staticInvokeType.

Implementation

set methodNameType(DartType? methodNameType) {
  _methodNameType = methodNameType;
}