contains abstract method

bool contains(
  1. String key
)

Checks whether the key exists in the storage. key Key to check. Returns true if a value is stored under the key (regardless of type).

Example:

// Check if keys exist
bool hasUserName = _userStorage!.contains("user_name");
bool hasNonExistent = _userStorage!.contains("non_existent_key");
print("Contains 'user_name': $hasUserName");
print("Contains 'non_existent_key': $hasNonExistent");

Implementation

bool contains(String key);