operator + method

RangeCompactList operator +(
  1. Range otherRange
)
inherited

Performs a union with another range merge if overlaps

Implementation

RangeCompactList operator +(Range otherRange) {
  return RangeCompactList()
    ..add(this)
    ..add(otherRange);
}