hasKey static method

bool hasKey(
  1. String key
)

查找是否有指定key

Implementation

static bool hasKey(String key) {
  return _prefs?.getKeys().contains(key) as bool;
}