ScheduledFileMessageParams.withUrl constructor
ScheduledFileMessageParams.withUrl(
- String fileUrl, {
- String? fileType,
- int? size,
- String? name,
- String? data,
- required int scheduledAt,
- String? customType,
- bool requiredAuth = true,
- bool sendPush = true,
- bool isSilent = false,
- bool markAsRead = true,
- List<
MessageMetaArray> ? metaArrays, - String? apnsBundleId,
- AppleCriticalAlertOptions? appleCriticalAlertOptions,
- PushNotificationDeliveryOption pushOption = PushNotificationDeliveryOption.normal,
- MentionType mentionType = MentionType.users,
Implementation
ScheduledFileMessageParams.withUrl(
String fileUrl, {
this.fileType,
this.size,
this.name,
this.data,
required this.scheduledAt,
this.customType,
this.requiredAuth = true,
this.sendPush = true,
this.isSilent = false,
this.markAsRead = true,
this.metaArrays,
this.apnsBundleId,
this.appleCriticalAlertOptions,
this.pushOption = PushNotificationDeliveryOption.normal,
this.mentionType = MentionType.users,
}) : uploadFile = FileInfo.fromUrl(
name: name ?? 'image',
mimeType: fileType ?? 'image/jpeg',
url: fileUrl,
fileSize: size,
);