height property

int get height

Implementation

int get height {
  // Height calc priority: style > attr > intrinsic.
  final double borderBoxHeight = _styleHeight
    ?? _attrHeight
    ?? renderStyle.getHeightByIntrinsicRatio();

  return borderBoxHeight.round();
}
set height (int value)

Implementation

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