How to inscribe the child into the space allocated during layout.
Source
ImageFit get fit => _fit;
Source
set fit (ImageFit newFit) {
assert(newFit != null);
if (_fit == newFit)
return;
_fit = newFit;
_clearPaintData();
markNeedsPaint();
}