clone method

BitArray clone()

Creates a copy of the current BitArray.

Implementation

BitArray clone() {
  final newData = Uint32List(_data.length);
  newData.setRange(0, _data.length, _data);
  return BitArray._(_length, newData);
}