TreeWidget<T> constructor
TreeWidget<T> ({
- required TreeNode<
T> root, - void onSelect(
- TreeNode<
T>
- TreeNode<
- Style selectedStyle = const Style(foreground: CharmColors.pepper, background: CharmColors.charple, modifiers: Modifier.bold),
- Style unselectedStyle = const Style(foreground: CharmColors.soda),
- Style lineStyle = const Style(foreground: CharmColors.bbq),
- bool showRoot = true,
- bool focused = true,
Creates a TreeWidget with the specified root node.
Implementation
TreeWidget({
required this.root,
this.onSelect,
this.selectedStyle = const Style(
foreground: CharmColors.pepper,
background: CharmColors.charple,
modifiers: Modifier.bold,
),
this.unselectedStyle = const Style(foreground: CharmColors.soda),
this.lineStyle = const Style(foreground: CharmColors.bbq),
this.showRoot = true,
this.focused = true,
}) {
_updateFlatNodes();
}