chatdetailWidget method

Widget chatdetailWidget(
  1. BuildContext context, {
  2. required Chat? cachedChat,
  3. dynamic onChatUpdated(
    1. Chat updatedChat
    )?,
  4. String chatImage = "https://img.freepik.com/free-photo/painting-mountain-lake-with-mountain-background_188544-9126.jpg",
  5. required dynamic chatcall(
    1. Chat chat
    ),
  6. required Function onClose,
  7. required dynamic onPressedtoProfile(
    1. int userID,
    2. String username
    ),
})

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,
  );
}