setString method

Future<bool> setString(
  1. String dataKey,
  2. String? dataValue, {
  3. bool notify = true,
})

Set the string value for the specified key in SharedPreferences.

Implementation

Future<bool> setString(String dataKey, String? dataValue,
    {bool notify = true}) async {
  assert(_key != null);
  return _decorator.setString(dataKey, dataValue, notify: notify);
}