set method

void set(
  1. String name,
  2. String value
)

Sets the value associated with a given search parameter to the given value. If there are several values, the others are deleted.

MDN reference

Implementation

void set(String name, String value) {
  delete(name);
  _storage.add((name, value));
}