width property

double? width
final

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

If null, the image will pick a size that best preserves its intrinsic aspect ratio. This may result in a sudden change if the size of the placeholder image does not match that of the target image. The size is also affected by the scale factor.

Implementation

final double? width;