setString method

void setString(
  1. String key,
  2. String value
)

Sets a string value for the given key.

Implementation

void setString(String key, String value) =>
    _prefsInstance.setString(key, value);