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