Future<File> writeAsBytes(List<int> bytes, {bool flush = false}) async { writeAsBytesSync(bytes); return this; }