getStringValues method

Future<String> getStringValues(
  1. String key
)

Implementation

Future<String> getStringValues(String key) async {
  var prefs = await SharedPreferences.getInstance();
  var stringValue = prefs.getString(key) ?? '';
  return stringValue;
}