setString static method

Future<void> setString(
  1. String key,
  2. String value
)

Sets the shared preferences value for the given key to the provided value of type String.

Implementation

static Future<void> setString(String key, String value) =>
    sharedPrefs.setString(key, value);