Future<void> setUserId(String x) async { SharedPreferences sp = await SharedPreferences.getInstance(); await sp.setString('userId', x); }