bool fileWriteString(String path, String data) { if (fileReadString(path) != data) { File(path).writeAsStringSync(data); return true; } else { return false; } }