loadFromPath method
- String path
Loading a json configuration file from a custom path
into the current app config.
Implementation
Future<GlobalConfiguration> loadFromPath(String path) async {
String content = await rootBundle.loadString(path);
Map<String, dynamic> configAsMap = json.decode(content);
appConfig.addAll(configAsMap);
return _singleton;
}