TreeTheme constructor
const
TreeTheme({
- BranchLine? branchLine,
- EdgeInsetsGeometry? padding,
- bool? expandIcon,
- bool? allowMultiSelect,
- bool? recursiveSelection,
Creates a theme for tree view components.
This constructor allows customization of tree visualization and behavior including branch lines, spacing, icons, and selection modes.
Parameters:
branchLine(BranchLine?): Visual style for lines connecting tree nodespadding(EdgeInsetsGeometry?): Padding around tree itemsexpandIcon(bool?): Whether to show expand/collapse iconsallowMultiSelect(bool?): Whether multiple nodes can be selected simultaneouslyrecursiveSelection(bool?): Whether selecting parent selects all children
Example:
TreeTheme(
branchLine: BranchLine.solid,
padding: EdgeInsets.all(8),
allowMultiSelect: true,
)
Implementation
const TreeTheme({
this.branchLine,
this.padding,
this.expandIcon,
this.allowMultiSelect,
this.recursiveSelection,
});