CanvasElement constructor
Implementation
CanvasElement({int? width, int? height})
: super._(window.document, 'CANVAS') {
if (width != null) {
_setAttributeInt('width', width);
}
if (height != null) {
_setAttributeInt('height', height);
}
}