Future setBool(String name, bool value) async { SharedPreferences prefs = await SharedPreferences.getInstance(); await prefs.setBool(name, value); return true; }