MessageContent constructor

const MessageContent({
  1. Key? key,
  2. required List<ChatMessageModel> chatList,
  3. required int index,
  4. String search = "",
  5. bool isSelected = false,
  6. required dynamic onPlayAudio(),
  7. required dynamic onSeekbarChange(
    1. double
    ),
  8. SenderChatBubbleStyle senderChatBubbleStyle = const SenderChatBubbleStyle(),
  9. ReceiverChatBubbleStyle receiverChatBubbleStyle = const ReceiverChatBubbleStyle(),
  10. NotificationMessageViewStyle notificationMessageViewStyle = const NotificationMessageViewStyle(),
})

Implementation

const MessageContent(
    {Key? key,
    required this.chatList,
    required this.index,
    this.search = "",
    this.isSelected = false,
    required this.onPlayAudio,
    required this.onSeekbarChange,
    this.senderChatBubbleStyle = const SenderChatBubbleStyle(),
    this.receiverChatBubbleStyle = const ReceiverChatBubbleStyle(),
    this.notificationMessageViewStyle = const NotificationMessageViewStyle()})
    : super(key: key);