doWriteAsBytes method
Write bytes
Implementation
Future<FileMixin> doWriteAsBytes(List<int> bytes,
{FileMode mode = FileMode.write, bool flush = false}) async {
var sink = openWrite(mode: mode)..add(bytes);
await sink.close();
return this;
}