stopAutoScroll method
Starts a IdleScrollActivity to stop a ongoing autoscroll activity.
Implementation
void stopAutoScroll(Axis axis) {
if (getAutoScrollControllerFor(axis: axis) == null) {
return;
}
if (axis == Axis.vertical) {
verticalAutoScrollController = null;
} else {
horizontalAutoScrollController = null;
}
final scrollController = getScrollControllerFor(axis: axis)!;
(scrollController.position as ScrollPositionWithSingleContext).goIdle();
}