SmartSceneWeek constructor

SmartSceneWeek({
  1. required List<SmartSceneWeekTimeslot> timeslots,
  2. required List<String> recurrence,
})

Creates a SmartSceneWeek object.

Implementation

SmartSceneWeek({
  required this.timeslots,
  required this.recurrence,
})  : _originalTimeslots =
          timeslots.map((timeslot) => timeslot.copyWith()).toList(),
      _originalRecurrence = List<String>.from(recurrence);