mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 01:35:25 +00:00
push ac function state selection
This commit is contained in:
@ -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];
|
||||
}
|
Reference in New Issue
Block a user