getConfigs static method
Implementation
static Future<dynamic> getConfigs() async {
final SharedPreferences prefs = await SharedPreferences.getInstance();
String? configJson = prefs.getString("config");
if (configJson != null) {
return jsonDecode(configJson);
} else {
return await refreshConfigs();
}
}