indexInFinalList property
The index the dragged node should occupy in the final sibling list of parentKey after the move / reorder has completed.
- Cross-parent drops: pass directly to
TreeController.moveNode as
index. - Same-parent drops: build a live sibling list with the dragged key removed and re-inserted at this index, then pass to TreeController.reorderChildren / TreeController.reorderRoots.
Implementation
final int indexInFinalList;