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