findMaxSize method
Implementation
Size findMaxSize(List<Node> nodes) {
var width = double.negativeInfinity;
var height = double.negativeInfinity;
nodes.forEach((node) {
width = max(width, node.width);
height = max(height, node.height);
});
return Size(width, height);
}