computeDistanceToFirstLineBaseline method
Compute distance to baseline of first text line
Implementation
double computeDistanceToFirstLineBaseline() {
double firstLineOffset = _lineOffset[0];
ui.LineMetrics firstLineMetrics = _lineMetrics[0];
// Use the baseline of the last line as paragraph baseline.
return text.text == '' ? 0.0 : (firstLineOffset + firstLineMetrics.ascent);
}