toWasm static method

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

Returns this as a WASM canonical abi value.

Implementation

static (int, Object?) toWasm(WasmType value) => switch (value) {
      ModuleType() => (0, value.toWasm()),
      ComponentType() => (1, value.toWasm()),
    };