writeSettings method
- Settings? value
Saves the Settings object to the settingsFile, as JSON.
Implementation
Future<void> writeSettings(Settings? value) async {
final json = jsonEncoder.convert(value?.toJson() ?? {});
await settingsFile.writeAsString(json);
}