TolyDraggableTree<T> constructor
const
TolyDraggableTree<T> ({
- Key? key,
- required List<
TreeNode< nodes,T> > - required Widget nodeBuilder(
- TreeNode<
T>
- TreeNode<
- dynamic onTap(
- TreeNode<
T>
- TreeNode<
- dynamic onExpand(
- TreeNode<
T>
- TreeNode<
- bool canDrop(
- TreeNode<
T> dragNode, - TreeNode<
T> ? targetNode, - DropPosition position
- TreeNode<
- void onNodeMoved(
- DragResult<
T> result
- DragResult<
- Widget dragFeedbackBuilder(
- TreeNode<
T> node
- TreeNode<
- Widget childWhenDraggingBuilder(
- TreeNode<
T> node
- TreeNode<
- bool autoExpandOnDrop = true,
- bool autoManageNode = true,
- double indent = 24.0,
- Widget? expandIcon,
- Widget? collapseIcon,
- Duration animationDuration = const Duration(milliseconds: 200),
- Curve animationCurve = Curves.easeInOut,
- bool showConnectingLines = false,
- Color? connectingLineColor,
- double connectingLineWidth = 1.0,
Implementation
const TolyDraggableTree({
super.key,
required this.nodes,
required this.nodeBuilder,
this.onTap,
this.onExpand,
this.canDrop,
this.onNodeMoved,
this.dragFeedbackBuilder,
this.childWhenDraggingBuilder,
this.autoExpandOnDrop = true,
this.autoManageNode = true,
this.indent = 24.0,
this.expandIcon,
this.collapseIcon,
this.animationDuration = const Duration(milliseconds: 200),
this.animationCurve = Curves.easeInOut,
this.showConnectingLines = false,
this.connectingLineColor,
this.connectingLineWidth = 1.0,
});