hasKey static method

bool hasKey(
  1. String key
)

have key.

Implementation

static bool hasKey(String key) {
  _ensureInitialized();
  return _captureSync(
    operation: ComStorageOperation.contains,
    key: key,
    action: () => _prefs.getKeys().contains(key),
  );
}