contains method

  1. @override
Future<bool> contains(
  1. dynamic key
)
override

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);
}