delete method

  1. @override
Future<void> delete(
  1. String key
)
override

Deletes the value associated with the given key.

Throws a CacheException if there is an error deleting the data.

Implementation

@override
Future<void> delete(String key) async {
  final p = await prefs;
  await p.remove(_getKey(key));
}