scrollToBottom method
Scrolls the ScrollController to the bottom (maximum scroll extent) with smooth animation.
duration specifies the duration of the scroll animation.
curve defines the curve for the animation (defaults to Curves.easeInOut).
Implementation
Future<void> scrollToBottom({
Duration duration = const Duration(milliseconds: 300),
Curve curve = Curves.easeInOut,
}) {
return animateToPosition(
position.maxScrollExtent,
duration: duration,
curve: curve,
);
}