hexToU8aStream function
Implementation
Uint8List hexToU8aStream(String value) {
final newValue = hexStripPrefix(value);
final results = Uint8List((newValue.length / 2).ceil());
final controller = StreamController<List<int>>(sync: true);
controller.stream.listen((data) {
results.setAll(0, data);
});
final sink = hex.decoder.startChunkedConversion(controller.sink);
sink.add(newValue);
return results;
}