fit property

BoxFit? fit

How to inscribe the image into the space allocated during layout.

The default varies based on the other fields. See the discussion at paintImage.

Implementation

BoxFit? get fit => _fit;
void fit=(BoxFit? value)

Implementation

set fit(BoxFit? value) {
  if (value == _fit) {
    return;
  }
  _fit = value;
  markNeedsPaint();
}