Calendar constructor

Calendar({
  1. ValueChanged<DateTime>? onMonthChanged,
  2. ValueChanged<DateTime>? onDateSelected,
  3. ValueChanged? onRangeSelected,
  4. ValueChanged<bool>? onExpandStateChanged,
  5. ValueChanged<CleanCalendarEvent>? onEventSelected,
  6. bool hideBottomBar = false,
  7. bool isExpandable = false,
  8. Map<DateTime, List<CleanCalendarEvent>>? events,
  9. DayBuilder? dayBuilder,
  10. EventListBuilder? eventListBuilder,
  11. bool hideTodayIcon = false,
  12. bool hideArrows = false,
  13. Color? selectedColor,
  14. Color? todayColor,
  15. String todayButtonText = 'Today',
  16. Color? eventColor,
  17. Color? eventDoneColor,
  18. DateTime? initialDate,
  19. bool isExpanded = false,
  20. List<String> weekDays = const ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
  21. String? locale = 'en_US',
  22. bool startOnMonday = false,
  23. TextStyle? dayOfWeekStyle,
  24. TextStyle? bottomBarTextStyle,
  25. Color? bottomBarArrowColor,
  26. Color? bottomBarColor,
  27. String? expandableDateFormat = 'EEEE MMMM dd, yyyy',
})

Implementation

Calendar({
  this.onMonthChanged,
  this.onDateSelected,
  this.onRangeSelected,
  this.onExpandStateChanged,
  this.onEventSelected,
  this.hideBottomBar: false,
  this.isExpandable: false,
  this.events,
  this.dayBuilder,
  this.eventListBuilder,
  this.hideTodayIcon: false,
  this.hideArrows: false,
  this.selectedColor,
  this.todayColor,
  this.todayButtonText: 'Today',
  this.eventColor,
  this.eventDoneColor,
  this.initialDate,
  this.isExpanded = false,
  this.weekDays = const ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
  this.locale = 'en_US',
  this.startOnMonday = false,
  this.dayOfWeekStyle,
  this.bottomBarTextStyle,
  this.bottomBarArrowColor,
  this.bottomBarColor,
  this.expandableDateFormat = 'EEEE MMMM dd, yyyy',
});