FileMessage constructor

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

Implementation

FileMessage({
  required this.url,
  this.name,
  this.size = 0,
  this.type,
  this.thumbnails,
  this.requireAuth = false,
  this.file,
  String? requestId,
  String? message,
  required int messageId,
  SendingStatus? sendingStatus,
  Sender? sender,
  required String channelUrl,
  required ChannelType channelType,
  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,
  bool replyToChannel = false,
  Map<String, dynamic>? parentMessage,
}) : super(
        parentMessage: parentMessage,
        isReplyToChannel: replyToChannel,
        requestId: requestId,
        messageId: messageId,
        message: message ?? '',
        sendingStatus: sendingStatus,
        sender: sender,
        channelUrl: channelUrl,
        channelType: channelType,
        mentionedUsers: mentionedUsers,
        mentionType: mentionType,
        createdAt: createdAt,
        updatedAt: updatedAt,
        parentMessageId: parentMessageId,
        threadInfo: threadInfo,
        allMetaArrays: metaArrays,
        customType: customType,
        messageSurvivalSeconds: messageSurvivalSeconds,
        forceUpdateLastMessage: forceUpdateLastMessage,
        isSilent: isSilent,
        isOperatorMessage: isOperatorMessage,
        data: data,
        ogMetaData: ogMetaData,
        reactions: reactions,
      );