TreeView constructor

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

Implementation

TreeView({
  Key? key,
  required this.controller,
  this.onNodeTap,
  this.onNodeDoubleTap,
  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(
          controller,
          shrinkWrap: shrinkWrap,
          primary: primary,
          physics: physics,
        ),
      );