width property

double? width

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

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

Implementation

double? get width => _width;
void width=(double? value)

Implementation

set width(double? value) {
  if (value == _width) {
    return;
  }
  _width = value;
  markNeedsLayout();
}