readBase64String static method
Implementation
static Future<Tag> readBase64String(String encoded,
[void Function(int)? onReadListener]) async {
_io.disposeStream();
_io = ByteLayer();
_io.addListener(onReadListener);
List<int> bytes = base64Encoder.decode(encoded);
for (int byte in bytes) {
_io.writeByte(byte);
}
_io.resetPosition();
return Tag.readNamedTag(_io);
}