Files
syncrow-web/lib/pages/routiens/bloc/functions_bloc/functions_bloc_state.dart
2024-11-23 00:54:52 +03:00

25 lines
591 B
Dart

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];
}