yArrayNew method

YArray yArrayNew({
  1. JsonArray? init,
})

Implementation

YArray yArrayNew({
  JsonArray? init,
}) {
  final results = _yArrayNew([
    (init == null
        ? const None().toWasm()
        : Option.fromValue(init).toWasm((some) => some.toWasm()))
  ]);
  final result = results[0];
  return YArray.fromJson(result);
}