animateToPosition method
Scroll to given position with given animation duration
Implementation
Future<void> animateToPosition(double position, {milliseconds = 300}) async {
animateTo(
position,
duration: Duration(milliseconds: milliseconds),
curve: Curves.linear,
);
}