SyncedSliverTree<TKey, TItem> constructor
const
SyncedSliverTree<TKey, TItem> ({
- required Iterable<
SyncedTreeNode< tree,TKey, TItem> > - required TreeItemBuilder<
TKey, TItem> itemBuilder, - bool preserveExpansion = true,
- bool initiallyExpanded = true,
- Duration animationDuration = const Duration(milliseconds: 300),
- Curve animationCurve = Curves.easeInOut,
- double indentWidth = 0.0,
- int maxStickyDepth = 0,
- Key? key,
Creates a synced sliver tree from an immutable nested tree.
Implementation
const SyncedSliverTree({
required Iterable<SyncedTreeNode<TKey, TItem>> tree,
required this.itemBuilder,
this.preserveExpansion = true,
this.initiallyExpanded = true,
this.animationDuration = const Duration(milliseconds: 300),
this.animationCurve = Curves.easeInOut,
this.indentWidth = 0.0,
this.maxStickyDepth = 0,
super.key,
}) : _mode = _SyncedSliverTreeMode.tree,
_tree = tree,
_nodeRoots = null,
_nodeChildrenOf = null,
_hierarchyRoots = null,
_flatItems = null,
_snapshot = null,
_keyOf = null,
_childrenOf = null,
_parentOf = null;