getOrFail method
Implementation
@override
Map<String, dynamic> getOrFail(String key, {Exception Function()? onFail}) {
if (!_storage.containsKey(key)) {
if (onFail case Function()) {
throw onFail!();
}
throw Exception('Key $key not found');
}
return _storage[key];
}