WxScanWebPaths constructor

const WxScanWebPaths({
  1. String workerUrl = 'wxscan/wxscan_worker.js',
  2. String wasmUrl = 'wxscan/wxscan_wasm.wasm',
  3. String tfliteUrl = './wxscan_tflite.js',
})

The defaults put all four files in web/wxscan/.

Note where each URL is resolved from, which is why the last one looks different: the page fetches the first two, and the worker imports the third, so ./wxscan_tflite.js is a sibling of the worker script.

Implementation

const WxScanWebPaths({
  this.workerUrl = 'wxscan/wxscan_worker.js',
  this.wasmUrl = 'wxscan/wxscan_wasm.wasm',
  this.tfliteUrl = './wxscan_tflite.js',
});