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

Implementation

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