ChatFlow constructor
const
ChatFlow({
- Key? key,
- required List<
Message> messages, - required ChatUser chatUser,
- OnSendPressed? onSendPressed,
- OnAttachmentPressed? onAttachmentPressed,
- void onMessageLongPressed(
- Message message
- void onMessageSwipedLeft(
- Message swipedMessage
- void onMessageSwipedRight(
- Message swipedMessage
- bool? showUserAvatarInChat,
- void onMessageSelectionChanged()?,
- Theme? theme,
- CustomWidgetBuilder? videoWidgetBuilder,
- CustomWidgetBuilder? pdfWidgetBuilder,
- CustomWidgetBuilder? customWidgetBuilder,
- bool? shouldGroupConsecutiveImages,
- int? minImagesToGroup,
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.onMessageSelectionChanged,
this.theme,
this.videoWidgetBuilder,
this.pdfWidgetBuilder,
this.customWidgetBuilder,
this.shouldGroupConsecutiveImages,
this.minImagesToGroup});