TolyTree<T> constructor
const
TolyTree<T> ({
- Key? key,
- required List<
TreeNode< nodes,T> > - required Widget nodeBuilder(
- TreeNode<
T>
- TreeNode<
- dynamic onTap(
- TreeNode<
T>
- TreeNode<
- dynamic onExpand(
- TreeNode<
T>
- TreeNode<
- Future<
List< loadData(TreeNode< >T> >- TreeNode<
T>
- TreeNode<
- double? height,
- 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 TolyTree({
super.key,
required this.nodes,
required this.nodeBuilder,
this.onTap,
this.onExpand,
this.loadData,
this.height,
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,
});