loadFromUrlIntoKey method

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

Implementation

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