isCastMethodInvocation property

bool get isCastMethodInvocation

Returns whether this expression is an invocation of the method cast from either Iterable, List, Map, or Set`.

Implementation

bool get isCastMethodInvocation {
  final element = methodName.element;
  return element is MethodElement && element.isCastMethod;
}