Chat constructor

const Chat({
  1. Key? key,
  2. required UserID currentUserId,
  3. required ResolveUserCallback resolveUser,
  4. required ChatController chatController,
  5. Builders? builders,
  6. CrossCache? crossCache,
  7. UserCache? userCache,
  8. ChatTheme? theme,
  9. OnMessageSendCallback? onMessageSend,
  10. OnMessageTapCallback? onMessageTap,
  11. OnMessageLongPressCallback? onMessageLongPress,
  12. OnAttachmentTapCallback? onAttachmentTap,
  13. Color? backgroundColor,
  14. Decoration? decoration,
  15. DateFormat? timeFormat,
  16. String? scrollToBottomArrow,
  17. required ShapeBorder? shapeBorder,
  18. required ScrollController scrollController,
})

Creates the main chat widget.

Implementation

const Chat({
  super.key,
  required this.currentUserId,
  required this.resolveUser,
  required this.chatController,
  this.builders,
  this.crossCache,
  this.userCache,
  this.theme,
  this.onMessageSend,
  this.onMessageTap,
  this.onMessageLongPress,
  this.onAttachmentTap,
  this.backgroundColor,
  this.decoration,
  this.timeFormat,
  this.scrollToBottomArrow,
  required this.shapeBorder,
  required this.scrollController,
});