writeHexString method Null safety

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

Writes a HEX string to the stream of length bytes and bits

Implementation

void writeHexString(String input, {int bytes = 0, int bits = 0}) {
  writeBytes(Uint8List.fromList(hex.decode(input)), bytes: bytes, bits: bits);
}