IntMatcher constructor
Implementation
factory IntMatcher(List<int> values) {
if (values.isEmpty) {
throw ArgumentError.value(values, 'values', 'Must not be empty');
}
final list = values.toList();
switch (values.length) {
case 1:
return _Int1Matcher(list[0]);
case 2:
return _Int2Matcher(list[0], list[1]);
case 3:
return _Int3Matcher(list[0], list[1], list[2]);
case 4:
return _Int4Matcher(list[0], list[1], list[2], list[3]);
case 5:
return _Int5Matcher(list[0], list[1], list[2], list[3], list[4]);
}
return _IntMatcher(list);
}