TreeTheme constructor

const TreeTheme({
  1. BranchLine? branchLine,
  2. EdgeInsetsGeometry? padding,
  3. bool? expandIcon,
  4. bool? allowMultiSelect,
  5. 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 nodes
  • padding (EdgeInsetsGeometry?): Padding around tree items
  • expandIcon (bool?): Whether to show expand/collapse icons
  • allowMultiSelect (bool?): Whether multiple nodes can be selected simultaneously
  • recursiveSelection (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,
});