put method

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

Put a key-value pair.

Implementation

void put(K key, V value) {
  emit({...val, key: value});
}