position method
dynamic
position()
override
Implementation
@override
position(
TreeNode node, double left, double top, double right, double bottom) {
_children = node.children;
num sum = 0;
_sums = List<num>.generate(_children!.length + 1, (index) {
if (index == 0) return 0;
sum += _children![index - 1].value;
return sum;
});
partition(0, _children!.length, node.value, left, top, right, bottom);
}