mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-17 02:25:31 +00:00
push changes
This commit is contained in:
@ -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,
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user