width property

num width

Gets or sets the width of a canvas element on a document.

MDN Reference

Implementation

_i2.num get width => _i4.getProperty(
      this,
      'width',
    );
void width=(num value)

Implementation

set width(_i2.num value) {
  _i4.setProperty(
    this,
    'width',
    value,
  );
}