getChildMarginBottom method

double getChildMarginBottom(
  1. RenderBox? child
)

Implementation

double getChildMarginBottom(RenderBox? child) {
  if (child == null || child is! RenderBoxModel) {
    return 0;
  }
  // Use sibling-oriented collapsed bottom that does not prematurely
  // collapse with the parent. This ensures correct spacing when the
  // following in-flow content is represented by an anonymous block
  // created at layout time (e.g., inline text sequences).
  return child.renderStyle.collapsedMarginBottomForSibling;
}