jumpToWithoutSettling method

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

Deprecated. Use jumpTo or a custom ScrollPosition instead.

Implementation

@Deprecated('This will lead to bugs.') // ignore: flutter_deprecation_syntax, https://github.com/flutter/flutter/issues/44609
@override
void jumpToWithoutSettling(double value) {
  goIdle();
  if (pixels != value) {
    final double oldPixels = pixels;
    forcePixels(value);
    didStartScroll();
    didUpdateScrollPositionBy(pixels - oldPixels);
    didEndScroll();
  }
}