ScheduledFileMessage constructor

ScheduledFileMessage({
  1. String? apnsBundleId,
  2. String? dedupId,
  3. AppleCriticalAlertOptions? appleCriticalAlertOptions,
  4. List<Thumbnail>? thumbnails,
  5. required FileInfo file,
  6. required int scheduledMessageId,
  7. required ScheduledUserMessageStatus scheduledStatus,
  8. required MessageType? type,
  9. required int scheduledAt,
  10. bool? markAsRead,
  11. required ChannelType channelType,
  12. bool sendPush = true,
  13. PushNotificationDeliveryOption pushOption = PushNotificationDeliveryOption.normal,
  14. String? reqId,
  15. ScheduledInfo? scheduledInfo,
  16. String? message,
  17. required String? senderId,
  18. required String channelUrl,
  19. List<User> mentionedUsers = const [],
  20. MentionType? mentionType,
  21. int createdAt = 0,
  22. int sentAt = 0,
  23. List<MessageMetaArray>? metaArrays,
  24. String? customType,
  25. bool isSilent = false,
  26. String? data,
  27. MessageSendingStatus? sendingStatus,
  28. bool isPinnedMessage = false,
})

Implementation

ScheduledFileMessage({
  this.apnsBundleId,
  this.dedupId,
  this.appleCriticalAlertOptions,
  this.thumbnails,
  required this.file,
  required this.scheduledMessageId,
  required this.scheduledStatus,
  required this.type,
  required this.scheduledAt,
  this.markAsRead,
  required ChannelType channelType,
  this.sendPush = true,
  PushNotificationDeliveryOption pushOption =
      PushNotificationDeliveryOption.normal,
  String? reqId,
  ScheduledInfo? scheduledInfo,
  String? message,
  required this.senderId,
  required String channelUrl,
  List<User> mentionedUsers = const [],
  MentionType? mentionType,
  int createdAt = 0,
  this.sentAt = 0,
  List<MessageMetaArray>? metaArrays,
  String? customType,
  bool isSilent = false,
  String? data,
  MessageSendingStatus? sendingStatus,
  bool isPinnedMessage = false,
})  : _reqId = reqId,
      _pushOption = pushOption,
      super(
        isPinnedMessage: isPinnedMessage,
        messageId: scheduledMessageId,
        message: message ?? '',
        sendingStatus: sendingStatus,
        channelUrl: channelUrl,
        channelType: channelType,
        mentionedUsers: mentionedUsers,
        mentionType: mentionType,
        createdAt: createdAt,
        customType: customType,
        isSilent: isSilent,
        data: data,
        scheduledInfo: scheduledInfo,
        metaArrays: metaArrays,
      );