writeBytesAtomic function
writeTextAtomic for bytes.
Implementation
void writeBytesAtomic(File file, List<int> bytes) =>
_replaceAtomic(file, (temp) => temp.writeAsBytesSync(bytes, flush: true));
writeTextAtomic for bytes.
void writeBytesAtomic(File file, List<int> bytes) =>
_replaceAtomic(file, (temp) => temp.writeAsBytesSync(bytes, flush: true));