Calendar<T extends CalendarEvent> constructor

const Calendar<T extends CalendarEvent>({
  1. Key? key,
  2. required CalendarEventProvider<T> eventProvider,
  3. CalendarStyle<T> style = const CalendarStyle(),
  4. CalendarText text = const CalendarText(),
  5. CalendarEventModalOptions<T> eventModalOptions = const CalendarEventModalOptions(),
  6. CalendarViewProvider viewProvider = const CalendarViewProvider(),
  7. List<CalendarQuickAction<T>> extraActions = const [],
  8. Widget? extraContent,
  9. void onCreatePressed()?,
  10. DateTime? startShowingDate,
  11. void onShowingUpdate(
    1. DateTime start,
    2. DateTime end
    )?,
})

Implementation

const Calendar({
  super.key,
  required this.eventProvider,
  this.style = const CalendarStyle(),
  this.text = const CalendarText(),
  this.eventModalOptions = const CalendarEventModalOptions(),
  this.viewProvider = const CalendarViewProvider(),
  this.extraActions = const [],
  this.extraContent,
  this.onCreatePressed,
  this.startShowingDate,
  this.onShowingUpdate,
});