load method
Implementation
@override
Future<AppSettings> load() async {
await ensureConfigFile(_settingsPath);
final file = File(_settingsPath);
try {
final content = await file.readAsString();
final yaml = loadYaml(content);
if (yaml is! YamlMap) return const AppSettings();
return _fromYaml(yaml);
} catch (_) {
return const AppSettings();
}
}