onCapacityGrew property
Optional callback fired when _ensureDenseCapacity reallocates the
per-nid arrays. The argument is the new capacity, in slots. The
controller uses this to grow its own per-nid arrays
(_visibleSubtreeSizeByNid, the order buffer's reverse index) in
lockstep.
Implementation
final void Function(int newCapacity)? onCapacityGrew;