ChatFlow constructor
const
ChatFlow({
- Key? key,
- required List<
Message> messages, - required ChatUser chatUser,
- OnSendPressed? onSendPressed,
- void onAttachmentPressed()?,
- void onMessageLongPressed()?,
- void onMessageSwipedLeft(
- Message swipedMessage
- void onMessageSwipedRight(
- Message swipedMessage
- bool? showUserAvatarInChat,
- void onDeleteMessages()?,
- Theme? theme,
- CustomWidgetBuilder? videoWidgetBuilder,
- CustomWidgetBuilder? pdfWidgetBuilder,
- CustomWidgetBuilder? customWidgetBuilder,
ChatFlow used to add chat features to the app
Implementation
const ChatFlow({
super.key,
required this.messages,
required this.chatUser,
this.onSendPressed,
this.onAttachmentPressed,
this.onMessageLongPressed,
this.onMessageSwipedLeft,
this.onMessageSwipedRight,
this.showUserAvatarInChat,
this.onDeleteMessages,
this.theme,
this.videoWidgetBuilder,
this.pdfWidgetBuilder,
this.customWidgetBuilder,
});