getChildSize method

Size? getChildSize(
  1. RenderBox child
)

Implementation

Size? getChildSize(RenderBox child) {
  if (child is RenderBoxModel) {
    return child.boxSize;
  } else if (child is RenderPositionPlaceholder) {
    return child.boxSize;
  } else if (child is RenderTextBox) {
    return child.boxSize;
  } else if (child.hasSize) {
    // child is WidgetElement.
    return child.size;
  }
  return null;
}