setValueFor method

void setValueFor(
  1. String key,
  2. dynamic value
)

Writes a value to storage for the given key.

If the key already exists, its value will be overwritten.

Implementation

void setValueFor(String key, dynamic value) {
  _storage.write(key, value);
}