operator | method

BitList operator |(
  1. BitList other
)

Returns the union of the receiver and other.

The new BitList has all the bits set that are either set in the receiver or in other. The receiver and other need to have the same length, otherwise an exception is thrown.

Implementation

BitList operator |(BitList other) => BitList.of(this)..or(other);