NiceScheduler constructor

const NiceScheduler({
  1. Key? key,
  2. required List<NiceSchedulerEvent> events,
  3. List<NiceSchedulerResource>? resources,
  4. DateTime? currentDate,
  5. NiceSchedulerView view = NiceSchedulerView.week,
  6. ValueChanged<DateTime>? onDateChange,
  7. ValueChanged<NiceSchedulerView>? onViewChange,
  8. void onEventClick(
    1. NiceSchedulerEvent event
    )?,
  9. void onSlotClick(
    1. DateTime dateTime
    )?,
  10. int startHour = 8,
  11. int endHour = 18,
  12. double height = 600,
})

Implementation

const NiceScheduler({
  super.key,
  required this.events,
  this.resources,
  this.currentDate,
  this.view = NiceSchedulerView.week,
  this.onDateChange,
  this.onViewChange,
  this.onEventClick,
  this.onSlotClick,
  this.startHour = 8,
  this.endHour = 18,
  this.height = 600,
});