SmartScene constructor
SmartScene({
- required ResourceType type,
- required String id,
- String idV1 = "",
- required SmartSceneMetadata metadata,
- required Relative group,
- required List<
SmartSceneWeek> weekTimeslots, - required SmartSceneActiveTimeslot activeTimeslot,
- required String state,
- String? recallAction,
Creates a SmartScene object.
Implementation
SmartScene({
required super.type,
required super.id,
this.idV1 = "",
required this.metadata,
required this.group,
required this.weekTimeslots,
required this.activeTimeslot,
required this.state,
this.recallAction,
}) : assert(idV1.isEmpty || Validators.isValidIdV1(idV1),
'"$idV1" is not a valid `idV1`'),
_originalMetadata = metadata.copyWith(),
_originalWeekTimeslots = weekTimeslots
.map((weekTimeslot) => weekTimeslot.copyWith())
.toList(),
_originalRecallAction = recallAction;