// If you know the height for each widget or the height is fixed.
void _scrollToLatestItem(int latestIndex) {
_controller.animateTo(
latestIndex * _widgetHeight,
duration: Duration(milliseconds: 300),
curve: Curves.easeInCubic,
);
}