TreeView constructor
TreeView({
- Key? key,
- required TreeViewController controller,
- dynamic onNodeTap()?,
- dynamic onNodeDoubleTap()?,
- ScrollPhysics? physics,
- dynamic onExpansionChanged()?,
- bool allowParentSelect = false,
- bool supportParentDoubleTap = false,
- bool shrinkWrap = false,
- bool primary = true,
- Widget nodeBuilder()?,
- 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,
),
);