yDocDestroy method

void yDocDestroy({
  1. required YDoc ref,
  2. YTransaction? parentTxn,
})

Implementation

void yDocDestroy({
  required YDoc ref,
  YTransaction? parentTxn,
}) {
  _yDocDestroy([
    ref.toWasm(),
    (parentTxn == null
        ? const None().toWasm()
        : Option.fromValue(parentTxn).toWasm(YTransaction.toWasm))
  ]);
}