setStringValues method

Future setStringValues(
  1. String key,
  2. String value
)

Implementation

Future<dynamic> setStringValues(String key, String value) async {
  var prefs = await SharedPreferences.getInstance();
  await prefs.setString(key, value);
}