scrollToItem method

Future scrollToItem(
  1. ITreeNode<Data> item, [
  2. Duration duration = scrollAnimationDuration
])

Implementation

Future scrollToItem(ITreeNode<Data> item,
        [Duration duration = scrollAnimationDuration]) async =>
    await scrollToIndex(animatedListStateController.indexOf(item), duration);