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