push ac function state selection

This commit is contained in:
ashrafzarkanisala
2024-11-23 00:54:52 +03:00
parent 7e2f605466
commit 53eb18c075
15 changed files with 475 additions and 196 deletions

View File

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