put method

void put(
  1. K key,
  2. V value
)

Inserts or updates a key-value pair in the reactive map.

Example:

settings.put('theme', 'dark');

Implementation

void put(K key, V value) {
  this.value = {...this.value, key: value};
}