setString static method

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

set the value to given key in shared prefs

Implementation

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