writeBitStream method Null safety

void writeBitStream(
  1. BitStream input,
  2. {int bytes = 0,
  3. int bits = 0}
)

Reads a BitStream object from the stream of length bytes and bits

Implementation

void writeBitStream(BitStream input, {int bytes = 0, int bits = 0}) {
  writeBytes(input.readBytes(bytes: bytes, bits: bits),
      bytes: bytes, bits: bits);
}