withBoolAt method

Bits withBoolAt(
  1. int index,
  2. bool value
)

Implementation

Bits withBoolAt(int index, bool value) => (value ? (this | (1 << index)) : (this & ~(1 << index))) as Bits;