setInt(String key, int value) async { _pref = _pref ?? await SharedPreferences.getInstance(); _pref.setInt(key, value); }