获取sp中key的map值
static Map? getStringMap(String key) { var jsonString = _prefs.getString(key); if (jsonString == null) { return null; } Map map = json.decode(jsonString); return map; }