isChildBlockLevel method

bool isChildBlockLevel(
  1. RenderBox? child
)

Implementation

bool isChildBlockLevel(RenderBox? child) {
  if (child is RenderBoxModel || child is RenderPositionPlaceholder) {
    RenderStyle? childRenderStyle = getChildRenderStyle(child!);
    if (childRenderStyle != null) {
      CSSDisplay? childDisplay = childRenderStyle.display;
      return childDisplay == CSSDisplay.block || childDisplay == CSSDisplay.flex;
    }
  }
  return false;
}