toWasm static method

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

Returns this as a WASM canonical abi value.

Implementation

static (int, Object?) toWasm(ItemInput value) => switch (value) {
      FilePath() => (0, value.toWasm()),
      DirPath() => (1, value.toWasm()),
      FileBytes() => (2, value.toWasm()),
    };