contains method
Checks if a given key exists in the storage.
key: The key to check.
Returns true if the key exists, otherwise false.
Implementation
@override
Future<bool> contains(dynamic key) async {
return key != null && storage.containsKey(key);
}