put method

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

Inserts or updates a value in the CRDT and increments the canonical time.

Implementation

void put(K key, V? value) {
  _canonicalTime = Hlc.send(_canonicalTime);
  final record = Record<V>(_canonicalTime, value, _canonicalTime);
  putRecord(key, record);
}