width property

int get width

Element property width.

Implementation

int get width {
  String? attrWidth = getAttribute(WIDTH);
  if (attrWidth != null) {
    return attributeToProperty<int>(attrWidth);
  } else {
    return _ELEMENT_DEFAULT_WIDTH_IN_PIXEL;
  }
}
set width (int value)

Implementation

set width(int value) {
  _setDimensions(value, null);
}