onCapacityGrew property

void Function(int newCapacity)? onCapacityGrew
final

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 (the order buffer's reverse index, animation-state mirrors, etc.) in lockstep.

Implementation

final void Function(int newCapacity)? onCapacityGrew;