widthFactor property

double widthFactor

If non-null, sets its width to the child's width multiplied by this factor.

Can be both greater and less than 1.0 but must be positive.

Implementation

double get widthFactor => _widthFactor;
void widthFactor= (double value)

Implementation

set widthFactor(double value) {
  assert(value == null || value >= 0.0);
  if (_widthFactor == value)
    return;
  _widthFactor = value;
  markNeedsLayout();
}