TolyTree<T> constructor

const TolyTree<T>({
  1. Key? key,
  2. required List<TreeNode<T>> nodes,
  3. required Widget nodeBuilder(
    1. TreeNode<T>
    ),
  4. dynamic onTap(
    1. TreeNode<T>
    )?,
  5. dynamic onExpand(
    1. TreeNode<T>
    )?,
  6. Future<List<TreeNode<T>>> loadData(
    1. TreeNode<T>
    )?,
  7. double? height,
  8. double indent = 24.0,
  9. Widget? expandIcon,
  10. Widget? collapseIcon,
  11. Duration animationDuration = const Duration(milliseconds: 200),
  12. Curve animationCurve = Curves.easeInOut,
  13. bool showConnectingLines = false,
  14. Color? connectingLineColor,
  15. 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,
});