getDistanceToBaseline method
Returns the distance from the top of this child to the specified baseline.
Used for text alignment when children contain text elements. Returns the distance from the child's top edge to the baseline.
Implementation
@override
double getDistanceToBaseline(LayoutTextBaseline baseline) {
return renderBox.getDistanceToBaseline(
textBaselineFromLayoutTextBaseline(baseline),
) ??
size.height;
}