Element.canvas constructor

Element.canvas()

Creates a new <canvas> element.

This is equivalent to calling new Element.tag('canvas').

Implementation

factory Element.canvas() => new CanvasElement();