Files
syncrow-web/lib/pages/routiens/bloc/functions_bloc/functions_bloc_state.dart
ashrafzarkanisala 7dccfb5a76 finished ac devices
2024-11-23 21:51:20 +03:00

30 lines
852 B
Dart

part of 'functions_bloc_bloc.dart';
class FunctionBlocState extends Equatable {
final List<DeviceFunctionData> addedFunctions;
final String? selectedFunction;
final String? selectedOperationName;
const FunctionBlocState({
this.addedFunctions = const [],
this.selectedFunction,
this.selectedOperationName,
});
FunctionBlocState copyWith({
List<DeviceFunctionData>? addedFunctions,
String? selectedFunction,
String? selectedOperationName,
}) {
return FunctionBlocState(
addedFunctions: addedFunctions ?? this.addedFunctions,
selectedFunction: selectedFunction ?? this.selectedFunction,
selectedOperationName:
selectedOperationName ?? this.selectedOperationName,
);
}
@override
List<Object?> get props =>
[addedFunctions, selectedFunction, selectedOperationName];
}