scrollToItem method

Future scrollToItem(
  1. Tree node, [
  2. Duration duration = scrollAnimationDuration
])

Method for programmatically scrolling to a node in the TreeView.

Implementation

Future scrollToItem(Tree node,
        [Duration duration = scrollAnimationDuration]) async =>
    _animatedListController.expansionBehaviourController
        .scrollToItem(node, duration);