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 ViewableWidgetModel) return (parent as ViewableWidgetModel).myMaxHeight;
  return 0;
}