myMaxHeight property

double get myMaxHeight

walks up the model tree looking for the first system non-null maxHeight value

Implementation

double get myMaxHeight {
  if (system.maxHeight != null && system.maxHeight != double.infinity) {
    return system.maxHeight!;
  }
  if (height != null) return height!;
  if (maxHeight != null) return maxHeight!;
  if (parent is ViewableWidgetMixin) {
    return (parent as ViewableWidgetMixin).myMaxHeight;
  }
  return 0;
}