scrollToBottom method

Future scrollToBottom(
  1. ScrollController scrollController
)

Implementation

Future scrollToBottom(ScrollController scrollController) async {
  while (scrollController.position.pixels !=
      scrollController.position.maxScrollExtent) {
    scrollController.jumpTo(scrollController.position.maxScrollExtent);
    await SchedulerBinding.instance!.endOfFrame;
  }
}