setString function

  1. @Deprecated('Use setValue instead')
Future<bool> setString(
  1. String key,
  2. String value
)

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);
  });
}