yArrayValues method

List<YValue> yArrayValues({
  1. required YArray ref,
  2. YTransaction? txn,
})

Implementation

List<YValue> yArrayValues({
  required YArray ref,
  YTransaction? txn,
}) {
  final results = _yArrayValues([
    ref.toWasm(),
    (txn == null
        ? const None().toWasm()
        : Option.fromValue(txn).toWasm(YTransaction.toWasm))
  ]);
  final result = results[0];
  return (result! as Iterable).map(YValue.fromJson).toList();
}