jumpTo method
Jumps to an absolute offset. Returns true if the offset changed.
Implementation
@override
bool jumpTo(int offset) {
final before = _offset;
final next = offset.clamp(0, maxOffset);
if (next == _offset) {
_traceScroll(
'widget_scroll.jumpTo noop '
'target=$offset offset=$before max=$maxOffset',
);
return false;
}
_offset = next;
_notifyListeners();
_traceScroll(
'widget_scroll.jumpTo '
'target=$offset from=$before to=$_offset max=$maxOffset',
);
return true;
}