listExcept static method
Creates a new list of intRange instances by excluding ranges from a source list.
The source list contains the original ranges, and the exceptions list contains the ranges to exclude.
Returns a new list of intRange instances representing the remaining ranges after exclusion.
Implementation
static List<IntRange> listExcept(List<IntRange> source, List<IntRange> exceptions) {
return Range._listExcept(source, exceptions).map((r) => r as IntRange).toList();
}