contains method
Checks for cached data at key
.
Returns true
if there is cached data at key
; false
otherwise.
Implementation
@override
Future<bool> contains(String key) async {
await _getReady;
final Object? item = _storage.getItem(key);
return item != null;
}