containsKey static method

bool containsKey(
  1. String key
)

Check if data exists.

If the value specified in key exists, true will be returned.

Implementation

static bool containsKey(String key) {
  if (!isInitialized) {
    debugPrint(
      "It has not been initialized. Please initialize it by executing [initialize()].",
    );
    return false;
  }
  return _preferences?.containsKey(key) ?? false;
}