instantiateModule method
Instantiates a module by calling WebAssembly.instantiateStreaming
with the response and createImportObject.
Implementation
Future<web.WebAssemblyInstantiatedSource> instantiateModule(
web.Response response,
) {
return web.WebAssembly.instantiateStreaming(
response as JSPromise<web.Response>,
createImportObject(),
).toDart;
}