BitString.fromLength constructor

BitString.fromLength(
  1. int length
)

Implementation

factory BitString.fromLength(int length) {
  var data = Uint8List((length / 8).ceil());

  return BitString(length, data);
}