BooleanSelector union()

in lib/src/impl.dart [48:54]


  BooleanSelector union(BooleanSelector other) {
    if (other == BooleanSelector.all) return other;
    if (other == BooleanSelector.none) return this;
    return other is BooleanSelectorImpl
        ? BooleanSelectorImpl._(OrNode(_selector, other._selector))
        : UnionSelector(this, other);
  }