Calendar constructor

const Calendar({
  1. Key? key,
  2. DateTime? initialMonth,
  3. DateTime? initialSelected,
  4. ValueChanged<DateTime>? onSelected,
  5. DateTimeRange<DateTime>? initialRange,
  6. ValueChanged<DateTimeRange<DateTime>>? onRangeSelected,
  7. CalendarMode mode = CalendarMode.single,
  8. String? locale,
  9. DateFormat? monthFormat,
  10. List<String>? weekdayLabels,
  11. int firstDayOfWeek = DateTime.monday,
  12. Set<DateTime> markerDates = const <DateTime>{},
  13. Color? markerColor,
  14. Color? selectedColor,
  15. Color? todayColor,
  16. Widget dayBuilder(
    1. BuildContext,
    2. DateTime
    )?,
  17. TextStyle? monthTextStyle,
  18. TextStyle? weekdayTextStyle,
  19. TextStyle? dayTextStyle,
  20. bool showOutsideDays = true,
  21. bool showTrailingOutsideDays = true,
})

Implementation

const Calendar({
  super.key,
  this.initialMonth,
  this.initialSelected,
  this.onSelected,
  this.initialRange,
  this.onRangeSelected,
  this.mode = CalendarMode.single,
  this.locale,
  this.monthFormat,
  this.weekdayLabels,
  this.firstDayOfWeek = DateTime.monday,
  this.markerDates = const <DateTime>{},
  this.markerColor,
  this.selectedColor,
  this.todayColor,
  this.dayBuilder,
  this.monthTextStyle,
  this.weekdayTextStyle,
  this.dayTextStyle,
  this.showOutsideDays = true,
  this.showTrailingOutsideDays = true,
});