feat(chat): API data fetched and added to the screen

This commit is contained in:
2024-04-25 15:33:11 +03:00
parent f5ac02c020
commit c7c8a52786
4 changed files with 50 additions and 50 deletions

View File

@@ -6,15 +6,15 @@ import 'package:eatvio_app/presentation/chat/chat_select_screen/models/chat_entr
/// This class defines the variables used in the [chat_select_screen],
/// and is typically used to hold data that is passed between different parts of the application.
class ChatSelectModel extends Equatable {
ChatSelectModel({this.userprofileItemList = const []});
ChatSelectModel({this.chatList = const []});
List<ChatItemModel> userprofileItemList;
ChatSelectModel copyWith({List<ChatItemModel>? userprofileItemList}) {
List<ChatItemModel> chatList;
ChatSelectModel copyWith({List<ChatItemModel>? chatList}) {
return ChatSelectModel(
userprofileItemList: userprofileItemList ?? this.userprofileItemList,
chatList: chatList ?? this.chatList,
);
}
@override
List<Object?> get props => [userprofileItemList];
List<Object?> get props => [chatList];
}