MonthItem constructor
MonthItem({
- Key? key,
- required DateTime? selectedDateStart,
- required DateTime? selectedDateEnd,
- required DateTime currentDate,
- required ValueChanged<
DateTime> onChanged, - required DateTime firstDate,
- required DateTime lastDate,
- required DateTime displayedMonth,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- Color? highLightColor,
- Color? selectedColor,
- TextStyle? selectedTextStyle,
- TextStyle? disabledTexStyle,
- bool showCurrentDay = true,
- Color? currentDayStrokeColor,
- double? itemHeight,
- Color? splashColor,
- double? spaceBetweenEachMonth,
- double? spaceBetweenRows,
- TextStyle? dayTextStyle,
- double? monthNameHeight,
- TextStyle? monthTextStyle,
Creates a month item.
Implementation
MonthItem({
Key? key,
required this.selectedDateStart,
required this.selectedDateEnd,
required this.currentDate,
required this.onChanged,
required this.firstDate,
required this.lastDate,
required this.displayedMonth,
this.dragStartBehavior = DragStartBehavior.start,
this.highLightColor,
this.selectedColor,
this.selectedTextStyle,
this.disabledTexStyle,
this.showCurrentDay = true,
this.currentDayStrokeColor,
this.itemHeight,
this.splashColor,
this.spaceBetweenEachMonth,
this.spaceBetweenRows,
this.dayTextStyle,
this.monthNameHeight,
this.monthTextStyle,
}) : assert(!firstDate.isAfter(lastDate)),
assert(selectedDateStart == null || !selectedDateStart.isBefore(firstDate)),
assert(selectedDateEnd == null || !selectedDateEnd.isBefore(firstDate)),
assert(selectedDateStart == null || !selectedDateStart.isAfter(lastDate)),
assert(selectedDateEnd == null || !selectedDateEnd.isAfter(lastDate)),
assert(selectedDateStart == null || selectedDateEnd == null || !selectedDateStart.isAfter(selectedDateEnd)),
super(key: key);