ChildBaselineGetter typedef

ChildBaselineGetter = double? Function(RenderBox child, BoxConstraints constraints, TextBaseline baseline)

Signature for a function that takes a RenderBox and returns the baseline offset this RenderBox would have if it were laid out with the given BoxConstraints.

ChildLayoutHelper.getDryBaseline and ChildLayoutHelper.getBaseline adhere to this signature.

Implementation

typedef ChildBaselineGetter = double? Function(RenderBox child, BoxConstraints constraints, TextBaseline baseline);