存储sp中key的布尔值
static Future<bool> putBool(String? key, bool? value) async { if (key == null || key.isEmpty || value == null) { return false; } return await _preferences.setBool(key, value); }