fit property
How to inscribe the child into the space allocated during layout.
Implementation
BoxFit get fit => _fit;
Implementation
set fit(BoxFit value) {
if (_fit == value) {
return;
}
final BoxFit lastFit = _fit;
_fit = value;
if (_fitAffectsLayout(lastFit) || _fitAffectsLayout(value)) {
markNeedsLayout();
} else {
_clearPaintData();
markNeedsPaint();
}
}