onMeasure method
Implementation
@override
Size onMeasure(double parentWidth, double parentHeight) {
double width = 0;
double height = 0;
// for (var element in _nodeList) {
// element.measure(align);
// if (direction == Direction.vertical) {
// width += element.rect.width + itemMargin;
// height = max(height, element.rect.height);
// } else {
// height += element.rect.height + itemMargin;
// width = max(width, element.rect.width);
// }
// }
return Size(width, height);
}