applyMoveTo method
Move the position to the given location.
If the new position was fully applied, returns true. If there was any overflow, returns false.
The default implementation calls ScrollActivityDelegate.setPixels and returns true if the overflow was zero.
Implementation
@override
bool applyMoveTo(double value) {
_oldPixels ??= position.totalPixels;
_newPixels = value;
final delta = _newPixels! - _oldPixels!;
Future.microtask(() => _oldPixels = _newPixels);
// The value of pixels for the new scroll offset.
final pixels = position.pixels + delta;
return super.applyMoveTo(pixels);
}