scrollToIndex method

Future scrollToIndex(
  1. int index, [
  2. Duration duration = scrollAnimationDuration
])

Method for programmatically scrolling to an index in the flat list of the TreeView.

Implementation

Future scrollToIndex(int index,
        [Duration duration = scrollAnimationDuration]) async =>
    _animatedListController.expansionBehaviourController
        .scrollToIndex(index, duration);