scrollToLastMessage method
void
scrollToLastMessage()
Implementation
void scrollToLastMessage() {
//fix ScrollController not attached to any scroll views.
if (scrollController.hasClients) {
scrollController.animateTo(
0,
duration: const Duration(milliseconds: 300),
curve: Curves.easeIn,
);
}
}