animateToCurrentYear method

void animateToCurrentYear()

Implementation

void animateToCurrentYear() {
  WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
    if (_scrollController.hasClients)
      _scrollController.animateTo(findSelectedYearOffset(),
          duration: Duration(milliseconds: 500), curve: Curves.ease);
  });
}