ChildLayouter typedef Null safety

Size ChildLayouter(
  1. RenderBox child,
  2. BoxConstraints constraints
)

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

The methods of ChildLayoutHelper adhere to this signature.

Implementation

typedef ChildLayouter = Size Function(RenderBox child, BoxConstraints constraints);