chatListWidget method

ChatWidgetBundle chatListWidget(
  1. BuildContext context, {
  2. required dynamic onPressed(
    1. Chat chat
    ),
  3. List<Chat>? cachedChatList,
  4. dynamic onChatUpdated(
    1. List<Chat> updatedChat
    )?,
})

Implementation

ChatWidgetBundle chatListWidget(
  BuildContext context, {
  required Function(Chat chat) onPressed,
  List<Chat>? cachedChatList,
  Function(List<Chat> updatedChat)? onChatUpdated,
}) {
  return widgetChatList(
    context,
    service,
    onPressed: onPressed,
    cachedChatList: cachedChatList,
    onChatUpdated: onChatUpdated,
  );
}