get method
Gets the value of the specified key, if it hasn't been cached yet, it caches it. If the key doesn't exist it throws an error.
Implementation
@override
Map<String, dynamic>? get(String key) {
_checkInitialized();
final String keyWithPrefix = _addPrefix(key);
if (_map.containsKey(keyWithPrefix)) {
return _map[keyWithPrefix];
}
Map<String, dynamic>? value = _getPref(keyWithPrefix);
if (value != null) {
_map[keyWithPrefix] = value;
}
return value;
}