loadFromUrl method

Future<NUIGlobalConfig> loadFromUrl(
  1. String url, {
  2. Map<String, String>? queryParameters,
  3. Map<String, String>? headers,
})

Implementation

Future<NUIGlobalConfig> loadFromUrl(String url, {Map<String, String>? queryParameters, Map<String, String>? headers}) async {
  Map<String, dynamic> configAsMap = await _getFromUrl(url, queryParameters: queryParameters, headers: headers);
  _appConfig.addAll(configAsMap);
  return this;
}