realWidth property
double
realWidth
Evaluates the width value that will be used to draw the widget. If a value is passed to the constructor, then this value will be used. Otherwise, it checks if a value has been passed to height and calculates the width using the original proportion factor. If both width and height are nulls, then the value setted for _defaultWidth will be used.
Implementation
double get realWidth {
if (width != null) {
return width!;
} else {
if (height == null) {
return _defaultWidth;
} else {
return height! * 1 / _heightRelation;
}
}
}