判断是否存在key的数据
static bool hasKey(String key) { if (_prefs == null) { return false; } Set keys = getKeys()!; return keys.contains(key); }