mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-16 18:16:34 +00:00
push calling create scene
This commit is contained in:
@ -9,6 +9,8 @@ class RoutineState extends Equatable {
|
||||
final Map<String, List<DeviceFunctionData>> selectedFunctions;
|
||||
final bool isLoading;
|
||||
final String? errorMessage;
|
||||
final String? routineName;
|
||||
final String? selectedIcon;
|
||||
|
||||
const RoutineState({
|
||||
this.ifItems = const [],
|
||||
@ -19,6 +21,8 @@ class RoutineState extends Equatable {
|
||||
this.selectedFunctions = const {},
|
||||
this.isLoading = false,
|
||||
this.errorMessage,
|
||||
this.routineName,
|
||||
this.selectedIcon,
|
||||
});
|
||||
|
||||
RoutineState copyWith({
|
||||
@ -29,6 +33,8 @@ class RoutineState extends Equatable {
|
||||
Map<String, List<DeviceFunctionData>>? selectedFunctions,
|
||||
bool? isLoading,
|
||||
String? errorMessage,
|
||||
String? routineName,
|
||||
String? selectedIcon,
|
||||
}) {
|
||||
return RoutineState(
|
||||
ifItems: ifItems ?? this.ifItems,
|
||||
@ -38,6 +44,8 @@ class RoutineState extends Equatable {
|
||||
selectedFunctions: selectedFunctions ?? this.selectedFunctions,
|
||||
isLoading: isLoading ?? this.isLoading,
|
||||
errorMessage: errorMessage ?? this.errorMessage,
|
||||
routineName: routineName ?? this.routineName,
|
||||
selectedIcon: selectedIcon ?? this.selectedIcon,
|
||||
);
|
||||
}
|
||||
|
||||
@ -50,5 +58,7 @@ class RoutineState extends Equatable {
|
||||
selectedFunctions,
|
||||
isLoading,
|
||||
errorMessage,
|
||||
routineName,
|
||||
selectedIcon,
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user