setInitialMonthData method
void
setInitialMonthData()
Implementation
void setInitialMonthData() {
if (dateEnd[0] == dateStart[0]) {
data[1] = List.generate(
dateEnd[1] - dateStart[1] + 1, (index) => index + dateStart[1]);
} else if (initialTime.year == dateStart[0]) {
data[1] =
List.generate(12 - dateStart[1] + 1, (index) => index + dateStart[1]);
} else if (initialTime.year == dateEnd[0]) {
data[1] = List.generate(dateEnd[1], (index) => index + 1);
} else {
data[1] = List.generate(12, (index) => index + 1);
}
}