Data transfer and state control

This commit is contained in:
2024-05-07 11:22:17 +03:00
parent 150e6dc1f9
commit d9956ed549
4 changed files with 35 additions and 67 deletions

View File

@@ -5,12 +5,13 @@ import 'package:equatable/equatable.dart';
/// This class defines the variables used in the [chat_screen],
/// and is typically used to hold data that is passed between different parts of the application.
class ChatModel extends Equatable {
ChatModel();
String? chatID;
ChatModel({String? chatID});
ChatModel copyWith() {
return ChatModel();
ChatModel copyWith(String chatID) {
return ChatModel(chatID: chatID);
}
@override
List<Object?> get props => [];
List<Object?> get props => [chatID];
}