Calendar constructor

const Calendar({
  1. Key? key,
  2. required DateTime firstDay,
  3. required DateTime lastDay,
  4. dynamic onSelectedDay(
    1. DateTime selectedDay
    )?,
  5. dynamic onSelectedRange(
    1. DateTime? start,
    2. DateTime? end
    )?,
  6. HeaderStyleCustomize headerStyle = const HeaderStyleCustomize(),
  7. CalendarStyleCustomize calendarStyle = const CalendarStyleCustomize(),
  8. CalendarBuildersCustomize calendarBuilder = const CalendarBuildersCustomize(),
  9. double? rowHeight,
  10. List listEvent(
    1. DateTime day
    )?,
  11. dynamic locale,
  12. DateTime? selectedDate,
  13. DateTime? rangeStart,
  14. DateTime? rangeEnd,
  15. CalendarFormat calendarFormat = CalendarFormat.month,
  16. CalendarTypeMode calendarTypeMode = CalendarTypeMode.day,
  17. RangeSelectionMode rangeSelectionMode = RangeSelectionMode.toggledOff,
  18. dynamic onSelectedMonthChange(
    1. DateTime focusDay
    )?,
})

Implementation

const Calendar({
  Key? key,
  required this.firstDay,
  required this.lastDay,
  this.onSelectedDay,
  this.onSelectedRange,
  this.headerStyle = const HeaderStyleCustomize(),
  this.calendarStyle = const CalendarStyleCustomize(),
  this.calendarBuilder = const CalendarBuildersCustomize(),
  this.rowHeight,
  this.listEvent,
  this.locale,
  this.selectedDate,
  this.rangeStart,
  this.rangeEnd,
  this.calendarFormat = CalendarFormat.month,
  this.calendarTypeMode = CalendarTypeMode.day,
  this.rangeSelectionMode = RangeSelectionMode.toggledOff,
  this.onSelectedMonthChange
}) : super(key: key);