Chat constructor
const
Chat({
- Key? key,
- required UserID currentUserId,
- required ResolveUserCallback resolveUser,
- required ChatController chatController,
- Builders? builders,
- CrossCache? crossCache,
- UserCache? userCache,
- ChatTheme? theme,
- OnMessageSendCallback? onMessageSend,
- OnMessageTapCallback? onMessageTap,
- OnMessageLongPressCallback? onMessageLongPress,
- OnAttachmentTapCallback? onAttachmentTap,
- Color? backgroundColor,
- Decoration? decoration,
- DateFormat? timeFormat,
- String? scrollToBottomArrow,
- required ShapeBorder? shapeBorder,
- 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,
});