toWasm method

  1. @override
(int, Object?) toWasm()
override

Returns this as a WASM canonical abi value.

Implementation

@override
(int, Object?) toWasm() => (
      0,
      (value == null
          ? const None().toWasm()
          : Option.fromValue(value).toWasm((some) => some.toWasm()))
    );