EditSlotDialog constructor

const EditSlotDialog({
  1. Key? key,
  2. Slot? slot,
  3. Weekday? weekday,
})

A dialog for editing or creating a slot. Edits a slot if slot is provided and creates a new slot if weekday is provided.

Implementation

const EditSlotDialog({super.key, this.slot, this.weekday}) : assert(slot != null || weekday != null, 'Either slot or weekday must be provided');