getIntrinsicWidth method
Computes the intrinsic width of this widget under the given height constraint.
Implementation
@override
int getIntrinsicWidth(int height) {
if (widthFactor != null) {
return (child.getIntrinsicWidth(height) * widthFactor!).round();
}
return child.getIntrinsicWidth(height);
}