forked from eatvio/eatvio_app
Data transfer and state control
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user