Future saveDataToLocalFunction(String key,String value)async{ SharedPreferences preferences = await SharedPreferences.getInstance(); preferences.setString(key, value); }