AbstractHTMLDisplay constructor

AbstractHTMLDisplay({
  1. required Element container,
})

Create the canvas in the container

Implementation

AbstractHTMLDisplay({required this.container})
    : canvas = document.createElement('canvas') as CanvasElement {
  container.append(canvas);
}