scrollToLastMessage method

void scrollToLastMessage()

Implementation

void scrollToLastMessage() {
  if (!scrollController.hasClients) return;
  scrollController.animateTo(0,
      duration: const Duration(milliseconds: 200), curve: Curves.easeIn);
}