getValue method

Future<String?> getValue(
  1. String key
)

Implementation

Future<String?> getValue(String key) async{
  var prefs = await SharedPreferences.getInstance().then((value) => value.getString(key));
  return prefs;
}