TreeView<T> constructor

TreeView<T>({
  1. Key? key,
  2. required TreeViewController<T> controller,
  3. dynamic onNodeTap(
    1. String
    )?,
  4. dynamic onNodeDoubleTap(
    1. String
    )?,
  5. dynamic onNodeLongPress(
    1. String
    )?,
  6. ScrollPhysics? physics,
  7. dynamic onExpansionChanged(
    1. String,
    2. bool
    )?,
  8. bool allowParentSelect = false,
  9. bool supportParentDoubleTap = false,
  10. bool shrinkWrap = false,
  11. bool primary = true,
  12. Widget nodeBuilder(
    1. BuildContext,
    2. Node<T>
    )?,
  13. TreeViewTheme? theme,
})

Implementation

TreeView({
  Key? key,
  required this.controller,
  this.onNodeTap,
  this.onNodeDoubleTap,
  this.onNodeLongPress,
  this.physics,
  this.onExpansionChanged,
  this.allowParentSelect = false,
  this.supportParentDoubleTap = false,
  this.shrinkWrap = false,
  this.primary = true,
  this.nodeBuilder,
  TreeViewTheme? theme,
})  : this.theme = theme ?? const TreeViewTheme(),
      super(
        key: key,
        child: _TreeViewData<T>(
          controller,
          shrinkWrap: shrinkWrap,
          primary: primary,
          physics: physics,
        ),
      );