dice method Null safety
Implementation
dice(
TreeNodeBase node, double left, double top, double right, double bottom) {
var k = (right - left) / node.value!;
for (var child in node.children!) {
child.left = left;
child.top = top;
child.right = left += child.value * k;
child.bottom = bottom;
}
}