contains static method

bool contains(
  1. String key
)

Returns true if the given key exists in preferences.

Implementation

static bool contains(String key) => _instance.containsKey(key);