yTextPush method
void
yTextPush({
- required YText ref,
- required String chunk,
- TextAttrs? attributes,
- YTransaction? txn,
Implementation
void yTextPush({
required YText ref,
required String chunk,
TextAttrs? attributes,
YTransaction? txn,
}) {
_yTextPush([
ref.toWasm(),
chunk,
(attributes == null
? const None().toWasm()
: Option.fromValue(attributes).toWasm((some) => some.toWasm())),
(txn == null
? const None().toWasm()
: Option.fromValue(txn).toWasm(YTransaction.toWasm))
]);
}