yDocNew method
Implementation
YDoc yDocNew({YDocOptions? options}) {
final results = _yDocNew([
(options == null
? const None().toWasm()
: Option.fromValue(options).toWasm((some) => some.toWasm())),
]);
final result = results[0];
return YDoc.fromJson(result);
}