PrismCalendar constructor

const PrismCalendar({
  1. Key? key,
  2. required DateTime month,
  3. required Set<DateTime> selected,
  4. required ValueChanged<DateTime> onDaySelected,
  5. ValueChanged<DateTime>? onMonthChanged,
  6. PrismDateSelection selection = PrismDateSelection.single,
  7. DateTime? firstDate,
  8. DateTime? lastDate,
  9. DateTime? today,
  10. List<String> monthNames = defaultMonthNames,
  11. List<String> weekdayLabels = defaultWeekdayLabels,
  12. int firstWeekday = DateTime.monday,
  13. Set<DateTime> markers = const {},
  14. String? semanticLabel,
})

Creates a calendar.

Implementation

const PrismCalendar({
  super.key,
  required this.month,
  required this.selected,
  required this.onDaySelected,
  this.onMonthChanged,
  this.selection = PrismDateSelection.single,
  this.firstDate,
  this.lastDate,
  this.today,
  this.monthNames = defaultMonthNames,
  this.weekdayLabels = defaultWeekdayLabels,
  this.firstWeekday = DateTime.monday,
  this.markers = const {},
  this.semanticLabel,
});