feat(chat): Classes added to chat screen

This commit is contained in:
2024-04-04 13:28:15 +03:00
parent 28d6525c78
commit 8386bcf137
5 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
// ignore_for_file: must_be_immutable
part of 'chat_bloc.dart';
/// Represents the state of Chat in the application.
class ChatState extends Equatable {
ChatState({
this.selectedDropDownValue,
this.chatModelObj,
});
SelectionPopupModel? selectedDropDownValue;
ChatModel? chatModelObj;
@override
List<Object?> get props => [
selectedDropDownValue,
chatModelObj,
];
ChatState copyWith({
SelectionPopupModel? selectedDropDownValue,
ChatModel? chatModelObj,
}) {
return ChatState(
selectedDropDownValue:
selectedDropDownValue ?? this.selectedDropDownValue,
chatModelObj: chatModelObj ?? this.chatModelObj,
);
}
}