PrismCalendar constructor
- Key? key,
- required DateTime month,
- required Set<
DateTime> selected, - required ValueChanged<
DateTime> onDaySelected, - ValueChanged<
DateTime> ? onMonthChanged, - PrismDateSelection selection = PrismDateSelection.single,
- DateTime? firstDate,
- DateTime? lastDate,
- DateTime? today,
- List<
String> monthNames = defaultMonthNames, - List<
String> weekdayLabels = defaultWeekdayLabels, - int firstWeekday = DateTime.monday,
- Set<
DateTime> markers = const {}, - 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,
});