isToSetMethodInvocation property

bool get isToSetMethodInvocation

Returns whether this expression is an invocation of the method toSet from Iterable.

Implementation

bool get isToSetMethodInvocation {
  final element = methodName.element;
  return element is MethodElement && element.isToSetMethod;
}