push changes

This commit is contained in:
ashrafzarkanisala
2024-11-30 20:43:21 +03:00
parent 8d388ac482
commit ce6e7700bc
14 changed files with 852 additions and 305 deletions

View File

@ -21,6 +21,7 @@ class RoutineState extends Equatable {
final String? sceneId;
final String? automationId;
final bool? isUpdate;
final List<AllDevicesModel> devices;
const RoutineState({
this.ifItems = const [],
@ -43,6 +44,7 @@ class RoutineState extends Equatable {
this.sceneId,
this.automationId,
this.isUpdate,
this.devices = const [],
});
RoutineState copyWith({
@ -65,6 +67,7 @@ class RoutineState extends Equatable {
String? sceneId,
String? automationId,
bool? isUpdate,
List<AllDevicesModel>? devices,
}) {
return RoutineState(
ifItems: ifItems ?? this.ifItems,
@ -89,6 +92,7 @@ class RoutineState extends Equatable {
sceneId: sceneId ?? this.sceneId,
automationId: automationId ?? this.automationId,
isUpdate: isUpdate ?? this.isUpdate,
devices: devices ?? this.devices,
);
}
@ -112,6 +116,7 @@ class RoutineState extends Equatable {
effectiveTime,
sceneId,
automationId,
isUpdate
isUpdate,
devices,
];
}