dryLayout method
Performs a dry layout without modifying the child's state.
Returns the size the child would have if laid out with the given constraints, but doesn't actually position or size the child. Useful for measuring and calculating layouts without side effects.
Implementation
@override
LayoutSize dryLayout(LayoutConstraints constraints) {
return layoutSizeFromSize(
renderBox.getDryLayout(
boxConstraintsFromLayoutConstraints(constraints),
),
);
}