TreeDropTarget<TKey> class
Resolved drop target for the current pointer position during a drag.
Immutable snapshot produced by TreeReorderController from the pointer and the current visible-offset snapshot. Used to draw the drop indicator and to commit the reorder on drag end.
- Annotations
Constructors
- TreeDropTarget({required TKey targetKey, required TreeDropZone zone, required TKey? parentKey, required int indexInFinalList, required int depth, required double indicatorScrollY, required double indicatorIndent})
-
const
Properties
- depth → int
-
Depth of the dragged node after the move, for indicator indent.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexInFinalList → int
-
The index the dragged node should occupy in the final sibling list
of parentKey after the move / reorder has completed.
final
- indicatorIndent → double
-
Horizontal inset for the indicator line, computed from depth and
the tree's indent-per-depth.
final
- indicatorScrollY → double
-
Scroll-space y where the indicator line should be drawn. Subtract
the scrollable's
position.pixelsto convert to viewport-local.final - parentKey → TKey?
-
The dragged node's new parent after commit.
nullmeans "root".final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetKey → TKey
-
The row the pointer is over.
final
- zone → TreeDropZone
-
Where the pointer sits relative to targetKey.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited