getMaxSize method
Implementation
Rect getMaxSize() {
Rect rect = Rect.zero;
for (final child in nodes) {
rect = Rect.fromLTRB(
min(rect.left, child.rect.left),
min(rect.top, child.rect.top),
max(rect.right, child.rect.right),
max(rect.bottom, child.rect.bottom),
);
}
return rect;
}