onWrite method
Implementation
@override
Future<void> onWrite(Stateful node, Map<String, dynamic> data) async {
File file = _fileFor(node);
try {
ignore.add(file.path.replaceAll("\\", "/"));
await file.writeAsString(jsonEncode(data));
} catch (e, es) {
logger.warn(
"Failed to write JSON for ${node.storageKey} at ${file.path}. $e");
logger.warn(es);
}
return Future.value();
}