ImageFit fit

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

Source

ImageFit get fit => _fit;
void fit=(ImageFit newFit)

Source

set fit (ImageFit newFit) {
  assert(newFit != null);
  if (_fit == newFit)
    return;
  _fit = newFit;
  _clearPaintData();
  markNeedsPaint();
}