1. override
double computeDistanceToActualBaseline(TextBaseline baseline)

Returns the distance from the y-coordinate of the position of the box to the y-coordinate of the first given baseline in the box's contents, if any, or null otherwise.

Do not call this function directly. Instead, call getDistanceToBaseline if you need to know the baseline of a child from an invocation of performLayout or paint and call getDistanceToActualBaseline if you are implementing computeDistanceToActualBaseline and need to defer to a child.

Subclasses should override this method to supply the distances to their baselines.

Source

@override
double computeDistanceToActualBaseline(TextBaseline baseline) {
  if (_direction == Axis.horizontal)
    return defaultComputeDistanceToHighestActualBaseline(baseline);
  return defaultComputeDistanceToFirstActualBaseline(baseline);
}