listExcept static method

List<DoubleRange> listExcept(
  1. List<DoubleRange> source,
  2. List<DoubleRange> exceptions
)

Creates a new list of DoubleRange 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 DoubleRange instances representing the remaining ranges after exclusion.

Implementation

static List<DoubleRange> listExcept(List<DoubleRange> source, List<DoubleRange> exceptions) {
  return Range._listExcept(source, exceptions).map((r) => r as DoubleRange).toList();
}