width property

int? width
final

The width into which to load the image.

If this is non-null, the image will be decoded into the specified width. If this is null and height is also null, the image will be decoded into its intrinsic size. If this is null and height is non-null, the image will be decoded into a width that maintains its intrinsic aspect ratio while respecting the height value.

If this value is non-null, it must be positive.

Implementation

final int? width;