getChildAscent method

double getChildAscent(
  1. RenderBox child
)

Implementation

double getChildAscent(RenderBox child) {
  // Distance from top to baseline of child.
  // double? childAscent = child.getDistanceToBaseline(TextBaseline.alphabetic, onlyReal: true);
  double? childAscent = null;
  Size? childSize = getChildSize(child);

  double baseline = childSize!.height;
  // When baseline of children not found, use boundary of margin bottom as baseline.
  double extentAboveBaseline = childAscent ?? baseline;

  return extentAboveBaseline;
}