update method

Future<void> update([
  1. Settings? value
])

Replaces the current settings with the provided ones.

Implementation

Future<void> update([Settings? value]) async {
	try {
		await services.files.writeSettings(value ?? all);
		if (value != null) all = value;
		notifyListeners();
	} catch (error) {
		models.home.setMessage(severity: Severity.critical, text: "Could not save settings: $error");
	}
}