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