setString function
add a String in SharedPref
Implementation
@Deprecated('Use setValue instead')
Future<bool> setString(String key, String value) async {
return await getSharedPref().then((pref) async {
return await pref.setString(key, value);
});
}