Tree<T> constructor
const
Tree<T> ({
- Key? key,
- List<
TreeNode< ? roots,T> > - TreeController<
T> ? controller, - Set<
TreeNodeId> ? initiallyExpanded, - bool showToolbar = true,
- bool showSearch = true,
- bool showCheckboxes = false,
- bool showGuides = true,
- bool dense = false,
- bool editable = true,
- TreeIconBuilder<
T> ? iconBuilder, - TreeWidgetBuilder<
T> ? trailingBuilder, - TreeWidgetBuilder<
T> ? labelBuilder, - TreeActionsBuilder<
T> ? contextActions, - ValueChanged<
TreeNode< ? onSelected,T> > - ValueChanged<
TreeNode< ? onActivated,T> > - ValueChanged<
Set< ? onCheckedChanged,TreeNodeId> > - ValueChanged<
List< ? onChanged,TreeNode< >T> > - Widget? emptyState,
Implementation
const Tree({
super.key,
this.roots,
this.controller,
this.initiallyExpanded,
this.showToolbar = true,
this.showSearch = true,
this.showCheckboxes = false,
this.showFooter = true,
this.showGuides = true,
this.dense = false,
this.editable = true,
this.iconBuilder,
this.trailingBuilder,
this.labelBuilder,
this.contextActions,
this.onSelected,
this.onActivated,
this.onCheckedChanged,
this.onChanged,
this.emptyState,
}) : assert(roots != null || controller != null, 'Provide roots or a controller.');