complement method

IntervalSet? complement(
  1. IntervalSet? vocabulary
)

{@inheritDoc} */

Implementation

IntervalSet? complement(IntervalSet? vocabulary) {
  if (vocabulary == null || vocabulary.isNil) {
    return null; // nothing in common with null set
  }
  return vocabulary - this;
}