chatdetailWidget method
Widget
chatdetailWidget(
- BuildContext context, {
- required Chat? cachedChat,
- dynamic onChatUpdated(
- Chat updatedChat
- String chatImage = "https://img.freepik.com/free-photo/painting-mountain-lake-with-mountain-background_188544-9126.jpg",
- required dynamic chatcall(
- Chat chat
- required Function onClose,
- required dynamic onPressedtoProfile(),
Implementation
Widget chatdetailWidget(
BuildContext context, {
required Chat? cachedChat,
Function(Chat updatedChat)? onChatUpdated,
String chatImage =
"https://img.freepik.com/free-photo/painting-mountain-lake-with-mountain-background_188544-9126.jpg",
required Function(Chat chat) chatcall,
required Function onClose,
required Function(int userID, String username) onPressedtoProfile,
}) {
return widgetChatDetail(
context,
service,
cachedChat: cachedChat,
chatcall: chatcall,
onClose: onClose,
onPressedtoProfile: onPressedtoProfile,
chatImage: chatImage,
onChatUpdated: onChatUpdated,
);
}