toWasm static method

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

Returns this as a WASM canonical abi value.

Implementation

static (int, Object?) toWasm(BytesOrUnicode value) => switch (value) {
      BytesOrUnicodeString() => value.toWasm(),
      BytesOrUnicodeUint8List() => value.toWasm(),
    };