toWasm method

List<Object?> toWasm()

Returns this as a WASM canonical abi value.

Implementation

List<Object?> toWasm() => [
      (origin == null
          ? const None().toWasm()
          : Option.fromValue(origin).toWasm()),
      kind.toWasm(),
      stackItem.toWasm()
    ];