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