toWasm static method

(int, Object?) toWasm(
  1. YTextDelta value
)

Returns this as a WASM canonical abi value.

Implementation

static (int, Object?) toWasm(YTextDelta value) => switch (value) {
      YTextDeltaInsert() => (0, value.toWasm()),
      YTextDeltaDelete() => (1, value.toWasm()),
      YTextDeltaRetain() => (2, value.toWasm()),
    };