Future<File> writeText(file, text) async { var f = File(file); return await (f.writeAsString(text)); }