BitSet constructor

BitSet(
  1. int _length
)

Creates a BitSet with a fixed number of bits.

Implementation

BitSet(this._length) {
  if (_length < 0) {
    throw RangeError('BitSet length cannot be negative.');
  }
  _words = Uint32List((_length + 31) ~/ 32);
}