DragRules class

常用的拖拽规则预设

提供一些常见的拖拽限制规则,可以直接使用或组合使用

Constructors

DragRules()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

leafOnly<T>() bool? Function(TreeNode<T> dragNode, TreeNode<T>? targetNode, DropPosition position)
只允许叶子节点拖拽
noInside<T>() bool? Function(TreeNode<T> dragNode, TreeNode<T>? targetNode, DropPosition position)
禁止拖拽到内部(只允许同级排序)