setValue method

Future<void> setValue(
  1. String key,
  2. dynamic value
)
inherited

Adds a string value to SharedPreferences with a namespaced key.

key is the original key. value is the string value to be stored.

Implementation

Future<void> setValue(String key, dynamic value) async {
  await SharedPreferencesWrapper.setValue(_getKey(key), value);
}