widthFactor property
If non-null, the factor of the incoming width to use.
If non-null, the child is given a tight width constraint that is the max incoming width constraint multiplied by this factor. If null, the child is given the incoming width constraints.
Implementation
double? get widthFactor => _widthFactor;
Implementation
set widthFactor(double? value) {
assert(value == null || value >= 0.0);
if (_widthFactor == value) {
return;
}
_widthFactor = value;
markNeedsLayout();
}