void setInt(Object key, int? value) { if (value == null) { prefer.remove(key.stringKey); } else { prefer.setInt(key.stringKey, value); } }