fit property
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;
Implementation
set fit(BoxFit? value) {
if (value == _fit) {
return;
}
_fit = value;
markNeedsPaint();
}