width property

int 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;
  }
}
void width=(int value)

Implementation

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