Returns the distance from the top of the text to the first baseline of the given type.
Valid only after layout has been called.
Source
double computeDistanceToActualBaseline(TextBaseline baseline) {
assert(!_needsLayout);
switch (baseline) {
case TextBaseline.alphabetic:
return _paragraph.alphabeticBaseline;
case TextBaseline.ideographic:
return _paragraph.ideographicBaseline;
}
assert(baseline != null);
return null;
}