getChildSize method

Size? getChildSize()

Returns the Size of the child widget.

If the child is not found, returns null.

Implementation

Size? getChildSize() {
  final RenderBox? box = getRenderBox();
  if (box != null) return box.size;
  return null;
}