height property Null safety

double? height

If non-null, require the image to have this height.

If null, the image will pick a size that best preserves its intrinsic aspect ratio.

Implementation

double? get height => _height;
void height=(double? value)

Implementation

set height(double? value) {
  if (value == _height) {
    return;
  }
  _height = value;
  markNeedsLayout();
}