computeDryBaseline method

  1. @override
double? computeDryBaseline(
  1. covariant BoxConstraints constraints,
  2. TextBaseline baseline
)
override

The child's own baseline, moved by however far this box places the child inside itself. performLayout lays the child out under _inner, so the dry pass asks under the same ones or it is answering about a different layout.

Implementation

@override
double? computeDryBaseline(covariant BoxConstraints constraints, TextBaseline baseline) {
  final k = child;
  if (k == null) return null;
  final inner = _inner(constraints);
  final b = dryBaselineOf(k, inner, baseline);
  if (b == null) return null;
  return b + _at(getDryLayout(constraints), guardedSize(k, () => k.getDryLayout(inner))).dy;
}