width property

int width

Implementation

int get width {
  // Width calc priority: style > attr > intrinsic.
  final double borderBoxWidth = _styleWidth
    ?? _attrWidth
    ?? renderStyle.getWidthByIntrinsicRatio();

  return borderBoxWidth.round();
}
void width=(int value)

Implementation

set width(int value) {
  if (value.isNegative) value = 0;
  internalSetAttribute(WIDTH, value.toString());
  if (_shouldScaling) {
    _decode(updateImageProvider: true);
  } else {
    _resizeImage();
  }
}