TreeTheme class

Theme configuration for TreeView appearance and behavior.

TreeTheme defines the visual styling and behavioral options for tree view components including branch lines, padding, expand icons, and selection modes. All properties are optional and fall back to theme defaults when not specified.

Example:

ComponentTheme<TreeTheme>(
  data: TreeTheme(
    branchLine: BranchLine.path,
    padding: EdgeInsets.all(12),
    expandIcon: true,
    allowMultiSelect: true,
    recursiveSelection: true,
  ),
  child: TreeView(...),
)

Constructors

TreeTheme({BranchLine? branchLine, EdgeInsetsGeometry? padding, bool? expandIcon, bool? allowMultiSelect, bool? recursiveSelection})
const

Properties

allowMultiSelect → bool?
Whether multiple nodes can be selected simultaneously.
final
branchLine → BranchLine?
The branch line style for connecting tree nodes.
final
expandIcon → bool?
Whether to show expand/collapse icons for nodes with children.
final
hashCode → int
The hash code for this object.
no setteroverride
padding → EdgeInsetsGeometry?
Padding around the entire tree view content.
final
recursiveSelection → bool?
Whether selecting a parent node also selects its children.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({ValueGetter<BranchLine?>? branchLine, ValueGetter<EdgeInsetsGeometry?>? padding, ValueGetter<bool?>? expandIcon, ValueGetter<bool?>? allowMultiSelect, ValueGetter<bool?>? recursiveSelection}) → TreeTheme
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override