getString method
It retrieves a string value from the localStorage. It returns an empty string if this value is not present
Implementation
Future<String> getString(String key) async {
return _prefs.then((SharedPreferences prefs) {
return prefs.getString(key) ?? "";
});
}