XBCalendarYear constructor
XBCalendarYear({})
Implementation
XBCalendarYear(
{required this.year,
required DateTime minDateTime,
required DateTime maxDateTime,
required DateTime? minEnableDateTime,
required DateTime? maxEnableDateTime,
required List<DateTime>? markDates}) {
for (int i = 1; i <= 12; i++) {
if ((year == minDateTime.year && i < minDateTime.month) ||
(year == maxDateTime.year && i > maxDateTime.month)) continue;
_months.add(XBCalendarMonth(
year: year,
month: i,
minEnableDateTime: minEnableDateTime,
maxEnableDateTime: maxEnableDateTime,
markDates: markDates));
}
}