static Future<void> saveFile(String filePath, String data) async { await File(filePath).writeAsString(data, flush: true); }