addOptionWebRenderer method

void addOptionWebRenderer()

Implementation

void addOptionWebRenderer() {
  addOption(
    'web-renderer',
    help: '''The renderer implementation to use when building for the web.
[auto] (default): Use the HTML renderer on mobile devices, and CanvasKit on desktop devices.
[canvaskit]: Always use the CanvasKit renderer. This renderer uses WebGL and WebAssembly to render graphics.
[html]: Always use the HTML renderer. This renderer uses a combination of HTML, CSS, SVG, 2D Canvas, and WebGL.
[skwasm]: Always use the experimental skwasm renderer.''',
    allowed: ['auto', 'canvaskit', 'html', 'skwasm'],
  );
}