remove method
Removes the cached data located at key
.
Throws JsonCacheException to indicate operation failure.
Implementation
@override
Future<void> remove(String key) async {
try {
await _wrapped.remove(key);
} on Exception catch (ex, st) {
Error.throwWithStackTrace(
JsonCacheException(
extra: "Error removing cached data at index '$key'.",
exception: ex,
),
st,
);
}
}