存储布尔值
Future<bool> putBool(String key, bool value) async { await ensureInitialized(); logger.i('putBool key:$key'); return _prefs?.setBool(key, value) ?? false; }