loadFromPath method

Future<NUIGlobalConfig> loadFromPath(
  1. String path
)

Implementation

Future<NUIGlobalConfig> loadFromPath(String path) async {
  String content = await rootBundle.loadString(path);
  Map<String, dynamic> configAsMap = json.decode(content);
  _appConfig.addAll(configAsMap);
  return this;
}