height property

int get height

Implementation

int get height {
  // Height calc priority: style > attr > intrinsic.
  // When CSS height is 'auto', _styleHeight returns null, so we fall back to intrinsic sizing
  final double borderBoxHeight = _styleHeight ?? _attrHeight ?? (naturalHeight > 0 ? naturalHeight.toDouble() : renderStyle.getHeightByAspectRatio());
  return borderBoxHeight.isFinite ? borderBoxHeight.round() : 0;
}
set height (int value)

Implementation

set height(int value) {
  if (value == height) return;
  internalSetAttribute(HEIGHT, '${value}px');
  if (_shouldScaling) {
    _reloadImage();
  } else {
    _resizeImage();
  }
}