getChildSize method
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;
}