isIntlCall function

bool isIntlCall(
  1. MethodInvocation node
)

Implementation

bool isIntlCall(MethodInvocation node) {
  final target = node.target;
  if (target is! SimpleIdentifier) return false;
  if (target.name != 'Intl') return false;
  return intlMethods.contains(node.methodName.name);
}