height property

double? height
finalinherited

The target height of the bitmap in logical pixels.

  • If height is provided and width is null, the image will be scaled to the associated height, and the width will take whatever value is needed to maintain the image's original aspect ratio. This is similar to BoxFit.fitHeight.
  • If both width and height are non-null, the image will have the specified dimensions, which might distort the original aspect ratio, similar to BoxFit.fill.
  • If neither width nor height is provided, the image will be rendered using the imagePixelRatio value.

Implementation

final double? height;