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. MessageSendingStatus? sendingStatus,
  8. String? requestId,
  9. List<User> mentionedUsers = const [],
  10. MentionType? mentionType,
  11. List<String>? requestedMentionUserIds,
  12. List<String>? mentionedUserIds,
  13. int createdAt = 0,
  14. int updatedAt = 0,
  15. int? parentMessageId,
  16. String? parentMessageText,
  17. ThreadInfo? threadInfo,
  18. List<MessageMetaArray>? metaArrays,
  19. String? customType,
  20. int? messageSurvivalSeconds,
  21. bool forceUpdateLastMessage = false,
  22. bool isSilent = false,
  23. int? errorCode,
  24. bool isOperatorMessage = false,
  25. String? data,
  26. OGMetaData? ogMetaData,
  27. List<Reaction>? reactions,
  28. Map<String, dynamic>? parentMessage,
  29. bool replyToChannel = false,
  30. Poll? poll,
  31. List<String>? translationTargetLanguages,
  32. bool isPinnedMessage = false,
})

Implementation

UserMessage({
  required this.translations,
  required int messageId,
  required String message,
  required String channelUrl,
  required ChannelType channelType,
  Sender? sender,
  MessageSendingStatus? sendingStatus,
  String? requestId,
  List<User> mentionedUsers = const [],
  MentionType? mentionType,
  List<String>? requestedMentionUserIds,
  List<String>? mentionedUserIds,
  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,
  int? errorCode,
  bool isOperatorMessage = false,
  String? data,
  OGMetaData? ogMetaData,
  List<Reaction>? reactions,
  Map<String, dynamic>? parentMessage,
  bool replyToChannel = false,
  this.poll,
  this.translationTargetLanguages,
  bool isPinnedMessage = false,
}) : super(
        isPinnedMessage: isPinnedMessage,
        replyToChannel: replyToChannel,
        requestId: requestId,
        messageId: messageId,
        message: message,
        sendingStatus: sendingStatus,
        sender: sender,
        channelType: channelType,
        channelUrl: channelUrl,
        mentionedUsers: mentionedUsers,
        mentionedUserIds: mentionedUserIds,
        mentionType: mentionType,
        requestedMentionUserIds: requestedMentionUserIds,
        createdAt: createdAt,
        updatedAt: updatedAt,
        parentMessageId: parentMessageId,
        parentMessageText: parentMessageText,
        parentMessage: parentMessage,
        threadInfo: threadInfo,
        metaArrays: metaArrays,
        customType: customType,
        messageSurvivalSeconds: messageSurvivalSeconds,
        forceUpdateLastMessage: forceUpdateLastMessage,
        isSilent: isSilent,
        errorCode: errorCode,
        isOperatorMessage: isOperatorMessage,
        data: data,
        ogMetaData: ogMetaData,
        reactions: reactions,
      );