getSavedFromLocalFunction function

Future getSavedFromLocalFunction(
  1. String key
)

Implementation

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