width property

num get width

Gets or sets the desired width of this GraphObject in local coordinates. This just gets or sets the width component of the #desiredSize. Default is NaN.

Size can also be constrained by setting #minSize and #maxSize.

The width does not include any transformation due to #scale or #angle, nor any pen thickness due to Shape#strokeWidth if this is a Shape. If there is a containing Panel the Panel will determine the actual size.

Implementation

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

Implementation

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