findSelectedYearOffset method

double findSelectedYearOffset()

Implementation

double findSelectedYearOffset() {
  final size =
      _scrollController.position.maxScrollExtent / (years.length / 3);
  return size * (years.indexOf(selectedYear)) / 3;
}