UserMessage constructor

UserMessage(
  1. {required Map<String, String> translations,
  2. required int messageId,
  3. required String message,
  4. required String channelUrl,
  5. required ChannelType channelType,
  6. Sender? sender,
  7. SendingStatus? sendingStatus,
  8. String? requestId,
  9. List<User> mentionedUsers = const [],
  10. MentionType? mentionType,
  11. List<String>? requestedMentionUserIds,
  12. int createdAt = 0,
  13. int updatedAt = 0,
  14. int? parentMessageId,
  15. String? parentMessageText,
  16. ThreadInfo? threadInfo,
  17. List<MessageMetaArray>? metaArrays,
  18. String? customType,
  19. int? messageSurvivalSeconds,
  20. bool forceUpdateLastMessage = false,
  21. bool isSilent = false,
  22. bool isOperatorMessage = false,
  23. String? data,
  24. OGMetaData? ogMetaData,
  25. List<Reaction>? reactions,
  26. Map<String, dynamic>? parentMessage,
  27. bool replyToChannel = false,
  28. Poll? poll,
  29. List<String>? translationTargetLanguages}
)

Implementation

UserMessage({
  required this.translations,
  required int messageId,
  required String message,
  required String channelUrl,
  required ChannelType channelType,
  Sender? sender,
  SendingStatus? sendingStatus,
  String? requestId,
  List<User> mentionedUsers = const [],
  MentionType? mentionType,
  List<String>? requestedMentionUserIds,
  int createdAt = 0,
  int updatedAt = 0,
  int? parentMessageId,
  String? parentMessageText,
  ThreadInfo? threadInfo,
  List<MessageMetaArray>? metaArrays,
  String? customType,
  int? messageSurvivalSeconds,
  bool forceUpdateLastMessage = false,
  bool isSilent = false,
  bool isOperatorMessage = false,
  String? data,
  OGMetaData? ogMetaData,
  List<Reaction>? reactions,
  Map<String, dynamic>? parentMessage,
  bool replyToChannel = false,
  this.poll,
  this.translationTargetLanguages,
}) : super(
        isReplyToChannel: replyToChannel,
        requestId: requestId,
        messageId: messageId,
        message: message,
        sendingStatus: sendingStatus,
        sender: sender,
        channelType: channelType,
        channelUrl: channelUrl,
        mentionedUsers: mentionedUsers,
        mentionType: mentionType,
        createdAt: createdAt,
        updatedAt: updatedAt,
        parentMessageId: parentMessageId,
        parentMessage: parentMessage,
        threadInfo: threadInfo,
        allMetaArrays: metaArrays,
        customType: customType,
        messageSurvivalSeconds: messageSurvivalSeconds,
        forceUpdateLastMessage: forceUpdateLastMessage,
        isSilent: isSilent,
        isOperatorMessage: isOperatorMessage,
        data: data,
        ogMetaData: ogMetaData,
        reactions: reactions,
      );