isToListMethodInvocation property

bool get isToListMethodInvocation

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

Implementation

bool get isToListMethodInvocation {
  final element = methodName.element;
  return element is MethodElement && element.isToListMethod;
}