jumpToWithoutSettling method

  1. @Deprecated('This will lead to bugs.')
  2. @override
void jumpToWithoutSettling (double value)
@Deprecated('This will lead to bugs.'), override

Deprecated. Use jumpTo or a custom ScrollPosition instead.

Implementation

@Deprecated('This will lead to bugs.')
@override
void jumpToWithoutSettling(double value) {
  goIdle();
  if (pixels != value) {
    final double oldPixels = pixels;
    forcePixels(value);
    notifyListeners();
    didStartScroll();
    didUpdateScrollPositionBy(pixels - oldPixels);
    didEndScroll();
  }
}