CanvasElement constructor

CanvasElement({
  1. int? width,
  2. int? height,
})

Implementation

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