TreeView<T> constructor
const
TreeView<T> ({
- required List<
TreeNode< nodes,T> > - required TreeViewBuilder<
T> builder, - required ExpanderBuilder expanderBuilder,
- ExpansionChanged<
T> ? onExpansionChanged, - ValueChanged<
TreeNode< ? onSelectionChanged,T> > - TreeNode<
T> ? selectedNode, - Widget indentation = const SizedBox(width: 16),
- Key? key,
- Curve animationCurve = Curves.easeInOut,
- Duration animationDuration = const Duration(milliseconds: 500),
Creates a TreeView widget with the specified parameters.
Implementation
const TreeView({
required this.nodes,
required this.builder,
required this.expanderBuilder,
ExpansionChanged<T>? onExpansionChanged,
ValueChanged<TreeNode<T>>? onSelectionChanged,
this.selectedNode,
this.indentation = const SizedBox(width: 16),
super.key,
this.animationCurve = Curves.easeInOut,
this.animationDuration = const Duration(milliseconds: 500),
}) : _onExpansionChanged = onExpansionChanged ?? _defaultExpansionChanged,
_onSelectionChanged = onSelectionChanged ?? _defaultSelectionChanged;