containsKey abstract method

Future<bool> containsKey(
  1. String key
)

Returns true if a value with the given key exists in the storage.

This method checks for the presence of a key without retrieving its value, which can be more efficient than checking if a get operation returns null.

Parameters:

  • key - The unique identifier to check for existence.

Returns a Future that completes with true if a value with the specified key exists in storage, false otherwise.

Throws:

Implementation

Future<bool> containsKey(String key);