isLineHeightValid method

bool isLineHeightValid(
  1. RenderBox child
)

Implementation

bool isLineHeightValid(RenderBox child) {
  if (child is RenderTextBox) {
    return true;
  } else if (child is RenderBoxModel) {
    CSSDisplay? childDisplay = child.renderStyle.display;
    return childDisplay == CSSDisplay.inline ||
        childDisplay == CSSDisplay.inlineBlock ||
        childDisplay == CSSDisplay.inlineFlex;
  }
  return false;
}