myMaxWidth property

double get myMaxWidth

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

Implementation

double get myMaxWidth
{
  if (system.maxWidth != null && system.maxWidth != double.infinity) return system.maxWidth!;
  if (width           != null) return width!;
  if (maxWidth        != null) return maxWidth!;
  if (parent is ViewableWidgetModel) return (parent as ViewableWidgetModel).myMaxWidth;
  return 0;
}