TreeSliver<T> constructor
- Key? key,
- required List<
TreeSliverNode< tree,T> > - TreeSliverNodeBuilder treeNodeBuilder = TreeSliver.defaultTreeNodeBuilder,
- TreeSliverRowExtentBuilder treeRowExtentBuilder = TreeSliver.defaultTreeRowExtentBuilder,
- TreeSliverController? controller,
- TreeSliverNodeCallback? onNodeToggle,
- AnimationStyle? toggleAnimationStyle,
- TreeSliverIndentationType indentation = TreeSliverIndentationType.standard,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- SemanticIndexCallback semanticIndexCallback = _kDefaultSemanticIndexCallback,
- int semanticIndexOffset = 0,
- int? findChildIndexCallback()?,
Creates an instance of a TreeSliver for displaying TreeSliverNodes that animate expanding and collapsing of nodes.
Implementation
const TreeSliver({
super.key,
required this.tree,
this.treeNodeBuilder = TreeSliver.defaultTreeNodeBuilder,
this.treeRowExtentBuilder = TreeSliver.defaultTreeRowExtentBuilder,
this.controller,
this.onNodeToggle,
this.toggleAnimationStyle,
this.indentation = TreeSliverIndentationType.standard,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.semanticIndexCallback = _kDefaultSemanticIndexCallback,
this.semanticIndexOffset = 0,
this.findChildIndexCallback,
});