value method
Retrieves the value located at key
or null
if there is no data.
Throws JsonCacheException to indicate operation failure.
Implementation
@override
Future<Map<String, dynamic>?> value(String key) async {
try {
return await _wrapped.value(key);
} on Exception catch (ex, st) {
Error.throwWithStackTrace(
JsonCacheException(
extra: "Error retrieving cached data at index '$key'.",
exception: ex,
),
st,
);
}
}