Calendar constructor
const
Calendar({
- Key? key,
- required DateTime firstDay,
- required DateTime lastDay,
- dynamic onSelectedDay(
- DateTime selectedDay
- dynamic onSelectedRange()?,
- HeaderStyleCustomize headerStyle = const HeaderStyleCustomize(),
- CalendarStyleCustomize calendarStyle = const CalendarStyleCustomize(),
- CalendarBuildersCustomize calendarBuilder = const CalendarBuildersCustomize(),
- double? rowHeight,
- List listEvent(
- DateTime day
- dynamic locale,
- DateTime? selectedDate,
- DateTime? rangeStart,
- DateTime? rangeEnd,
- CalendarFormat calendarFormat = CalendarFormat.month,
- CalendarTypeMode calendarTypeMode = CalendarTypeMode.day,
- RangeSelectionMode rangeSelectionMode = RangeSelectionMode.toggledOff,
- dynamic onSelectedMonthChange(
- 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);