writeFile method
Writes the given data
compound to the file located
at path
. This method only works on native platforms,
so every platform that includes support for 'dart:io'.
Throws FileSystemException
if path
points to a
invalid location.
Implementation
Future<void> writeFile(String path, NbtCompound data) async =>
toFile(path, write(data));