forked from eatvio/eatvio_app
feat(chat): API data fetched and added to the screen
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user