setSharedPrefsString static method

Future<bool> setSharedPrefsString(
  1. String key,
  2. String value
)

Implementation

static Future<bool> setSharedPrefsString(String key, String value) async {
  return isWeb || isWindows
      ? SharedPreferencesUtil.instance
          .setValue("String", _checkPrefix(key), value)
      : SharedPreferencesUtil.instance.setString(key, value);
}