存储布尔值 使用示例 void example() { SharepUtil.setBool('key', true); }
static Future<void> setBool(String key, bool value) async { final prefs = _prefs ?? await init(); await prefs.setBool(key, value); }