setStringAsync function

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

add a String in SharedPref

Implementation

@Deprecated('Use setValue instead')
Future<bool> setStringAsync(String key, String value) async {
  return await sharedPreferences.setString(key, value);
}