yMapSet method

void yMapSet({
  1. required YMap ref,
  2. required String key,
  3. required JsonValueItem value,
  4. YTransaction? txn,
})

Implementation

void yMapSet({
  required YMap ref,
  required String key,
  required JsonValueItem value,
  YTransaction? txn,
}) {
  _yMapSet([
    ref.toWasm(),
    key,
    value.toWasm(),
    (txn == null
        ? const None().toWasm()
        : Option.fromValue(txn).toWasm(YTransaction.toWasm))
  ]);
}