ScheduledFileMessage constructor
ScheduledFileMessage({
- String? apnsBundleId,
- String? dedupId,
- AppleCriticalAlertOptions? appleCriticalAlertOptions,
- List<
Thumbnail> ? thumbnails, - required FileInfo file,
- required int scheduledMessageId,
- required ScheduledUserMessageStatus scheduledStatus,
- required MessageType? type,
- required int scheduledAt,
- bool? markAsRead,
- required ChannelType channelType,
- bool sendPush = true,
- PushNotificationDeliveryOption pushOption = PushNotificationDeliveryOption.normal,
- String? reqId,
- ScheduledInfo? scheduledInfo,
- String? message,
- required String? senderId,
- required String channelUrl,
- List<
User> mentionedUsers = const [], - MentionType? mentionType,
- int createdAt = 0,
- int sentAt = 0,
- List<
MessageMetaArray> ? metaArrays, - String? customType,
- bool isSilent = false,
- String? data,
- MessageSendingStatus? sendingStatus,
- 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,
);