jumpToIndex method

Future<void> jumpToIndex(
  1. int index, {
  2. Duration duration = const Duration(microseconds: 1),
  3. double ruleOutSpacing = 0,
})

跳转至指定 index

Implementation

Future<void> jumpToIndex(int index,
        {
        /// 延迟计算跳转
        Duration duration = const Duration(microseconds: 1),
        double ruleOutSpacing = 0}) =>
    _jumpToIndex(index,
        delayedDuration: duration,
        useAnimateTo: false,
        ruleOutSpacing: ruleOutSpacing);