getMonthPageCount method
month pages count
Implementation
int getMonthPageCount(DateTime? firstDate, DateTime? lastDate) {
if (firstDate != null && lastDate != null) {
return lastDate.year - firstDate.year + 1;
} else if (firstDate != null && lastDate == null) {
return 9999 - firstDate.year;
} else if (firstDate == null && lastDate != null) {
return lastDate.year + 1;
} else {
return 9999;
}
}