findIntrinsicSize method

Size findIntrinsicSize(
  1. RenderBox? box,
  2. double maxWidth
)

Implementation

Size findIntrinsicSize(RenderBox? box, double maxWidth) {
  if (box == null) return Size.zero;
  box.layout(BoxConstraints(maxWidth: maxWidth), parentUsesSize: true);
  return box.size;
}