yTextLength method

int yTextLength({
  1. required YText ref,
  2. YTransaction? txn,
})

Implementation

int /*U32*/ yTextLength({required YText ref, YTransaction? txn}) {
  final results = _yTextLength([
    ref.toWasm(),
    (txn == null
        ? const None().toWasm()
        : Option.fromValue(txn).toWasm(YTransaction.toWasm)),
  ]);
  final result = results[0];
  return result! as int;
}