removedNode<Data, Tree extends ITreeNode<Data>> static method

Widget removedNode<Data, Tree extends ITreeNode<Data>>({
  1. required Tree node,
  2. required TreeNodeWidgetBuilder<Tree> builder,
  3. required AutoScrollController scrollController,
  4. required Animation<double> animation,
  5. required ExpansionIndicatorBuilder<Data>? expansionIndicator,
  6. required ValueSetter<Tree>? onItemTap,
  7. required ValueSetter<Tree> onToggleExpansion,
  8. required bool showRootNode,
  9. required Indentation indentation,
  10. required LastChildCacheManager lastChildCacheManager,
})

Implementation

static Widget removedNode<Data, Tree extends ITreeNode<Data>>({
  required Tree node,
  required TreeNodeWidgetBuilder<Tree> builder,
  required AutoScrollController scrollController,
  required Animation<double> animation,
  required ExpansionIndicatorBuilder<Data>? expansionIndicator,
  required ValueSetter<Tree>? onItemTap,
  required ValueSetter<Tree> onToggleExpansion,
  required bool showRootNode,
  required Indentation indentation,
  required LastChildCacheManager lastChildCacheManager,
}) {
  return ExpandableNodeItem<Data, Tree>(
    key: ValueKey(node.key),
    builder: builder,
    scrollController: scrollController,
    node: node,
    remove: true,
    animation: animation,
    indentation: indentation,
    expansionIndicatorBuilder: expansionIndicator,
    onItemTap: onItemTap,
    onToggleExpansion: onToggleExpansion,
    showRootNode: showRootNode,
    lastChildCacheManager: lastChildCacheManager,
  );
}