jumpToWithoutSettling method Null safety

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

Deprecated. Use jumpTo or a custom ScrollPosition instead.

Implementation

@Deprecated('This will lead to bugs.') // flutter_ignore: 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();
  }
}