sliver_tree/_drop_zone_resolver library
Pure drop-target resolution for drag-and-drop reorder.
Resolution is a pure function of controller state, hovered-row geometry and the pointer position, so the full zone table is unit-testable without a widget tree, following the same split as the package's other render and logic collaborators.
This library owns the semantic drop-target model. Pixel concerns like indent-per-depth never enter resolution: the pointer's x arrives pre-mapped to a preferred DEPTH, and the resolved slot leaves as TreeDropTarget.gapVisibleIndex, a visible-order position.
Classes
-
DropZoneResolver<
TKey> - Classifies a pointer position over a hovered row into a TreeDropZone and translates it to a semantic TreeDropTarget against current TreeController state.
-
TreeDropTarget<
TKey> - Resolved semantic drop target for the current pointer position during a drag.
Enums
- TreeDropZone
- Where the pointer lies relative to a candidate drop-target row.