getSavedFromLocalFunction function
Implementation
Future getSavedFromLocalFunction(String key)async{
SharedPreferences preferences = await SharedPreferences.getInstance();
String results = preferences.getString(key).toString();
return jsonDecode(results);
}