BitStream constructor Null safety

BitStream(
  1. {Uint8List? stream}
)

Initialises with an empty stream or with stream

Implementation

BitStream({Uint8List? stream}) {
  if (stream != null) {
    _stream = stream;
    _bitLength = _stream.length * 8;
  }
}