realHeight property

double realHeight

Evaluates the real height that will be considered while drawing the widget. If a height value was explicitly passed to object's constructor, then this value will be used. Otherwise, it infers a value for height from the width property, consering the original proportional factor.

Implementation

double get realHeight {
  if (height != null) {
    return height!;
  } else {
    return realWidth * _heightRelation;
  }
}