DragResult<T> class

拖拽操作的结果数据

包含拖拽操作的完整信息,用于处理节点移动逻辑

Constructors

DragResult({required TreeNode<T> dragNode, TreeNode<T>? targetNode, required DropPosition position})
const

Properties

dragNode TreeNode<T>
被拖拽的节点
final
hashCode int
The hash code for this object.
no setterinherited
position DropPosition
放置位置
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetNode TreeNode<T>?
目标节点,如果为 null 表示拖拽到根级别
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