hasKey method

Future<bool> hasKey(
  1. String key
)

Checks if a key exists

@param key The key to check @return A Future that resolves to true if the key exists, false otherwise

Implementation

Future<bool> hasKey(String key) async {
  return await get(key) != null;
}