flexHeight method

int? flexHeight()

Implementation

int? flexHeight() {
  // defined height takes precedence over flex
  if (hasBoundedHeight) return null;
  if (!visible) return null;
  return flex ?? (expandVertically || canExpandInfinitelyHigh ? 1 : null);
}