CompilationOptions.js constructor

const CompilationOptions.js({
  1. WebRenderer renderer = WebRenderer.canvaskit,
})

Creates a CompilationOptions object that compiles to JavaScript.

Implementation

const CompilationOptions.js({
  this.renderer = WebRenderer.canvaskit,
}) : useWasm = false;