registerWith static method

void registerWith(
  1. Registrar registrar
)

Imports the WasmRun external libraries into the Flutter web app. This is required for the plugin to implement some functionalities such as wasm feature detection and wasi shim.

For more information, see: WasmRunLibrary.setUp.

Implementation

static void registerWith(Registrar registrar) {
  WasmRunLibrary.setUp(
    override: false,
    isFlutter: true,
    loadAsset: rootBundle.load,
  );
}