dryLastBaseline method
This box's last baseline, from its top, at constraints.
Implementation
@override
double? dryLastBaseline(BoxConstraints constraints, TextBaseline baseline) {
if (child == null) return null;
// The clamp line's baseline is the block's last, not the last line
// painted under it.
if (_clamping && constraints.maxWidth.isFinite) {
final painter = _painter(_paragraph()!, _source!, maxLines: _lines)..layout(maxWidth: constraints.maxWidth);
try {
final lm = painter.computeLineMetrics();
if (lm.isNotEmpty) return lm.last.baseline;
} finally {
painter.dispose();
}
}
return dryLastBaselineOf(child!, constraints, baseline);
}