updateChildSize method
Implementation
bool updateChildSize(Size size) {
bool changed = false;
if (firstChildSize == null) {
firstChildSize = size;
changed = true;
} else {
final newWidth = max(firstChildSize!.width, size.width);
final newHeight = max(firstChildSize!.height, size.height);
if (newWidth != firstChildSize!.width ||
newHeight != firstChildSize!.height) {
firstChildSize = Size(newWidth, newHeight);
changed = true;
}
}
return changed;
}