loadConfig static method
Implementation
static Future<Map<String, dynamic>> loadConfig() async {
final file = File(_configPath);
if (!await file.exists()) {
return _defaultConfig();
}
final content = await file.readAsString();
final decoded = jsonDecode(content);
return {
..._defaultConfig(),
...decoded,
};
}