smoothScrollTo method
void
smoothScrollTo(})
scroll to scrollLength
position in dp. Animation parameters curve
and
duration
can be provided.
Implementation
void smoothScrollTo(double scrollLength,
{Curve curve = Curves.easeIn,
Duration duration = const Duration(milliseconds: 150)}) {
scrollController.animateTo(
scrollLength,
curve: curve,
duration: duration,
);
}