Set the boolean value against a key
setBool(String key, bool? value) { if (value == null) { return _prefs!.remove(key); } return _prefs!.setBool(key, value); }