writeBase64String static method
- CompoundTag tag, [
- void onWriteListener()?
Implementation
static Future<String> writeBase64String(CompoundTag tag,
[void Function(int)? onWriteListener]) async {
_io.disposeStream();
_io = ByteLayer();
_io.addListener(onWriteListener);
Tag.writeNamedTag(tag, _io);
return base64Encoder.encode(_io.bytes);
}