Some Improvements
This commit is contained in:
@@ -21,6 +21,13 @@ class FileHandler {
|
||||
return js;
|
||||
}
|
||||
|
||||
static Future<void> saveNotified(String listName, String todoName, String notifyType, bool value) async {
|
||||
Map content = await fileContent;
|
||||
content[listName][todoName][notifyType] = value;
|
||||
|
||||
await saveFile(content);
|
||||
}
|
||||
|
||||
static Future<void> saveFile(js) async {
|
||||
File f = await localFile;
|
||||
String content = json.encode(js);
|
||||
|
||||
Reference in New Issue
Block a user