ScheduledFileMessageCreateParams.withFileUrl constructor
- String fileUrl,
- {String? mimeType,
- int? fileSize,
- String? fileName,
- String? data,
- required int scheduledAt,
- String? customType,
- List<
MessageMetaArray> ? metaArrays, - AppleCriticalAlertOptions? appleCriticalAlertOptions,
- PushNotificationDeliveryOption pushNotificationDeliveryOption = PushNotificationDeliveryOption.normal,
- MentionType mentionType = MentionType.users}
withFileUrl
Implementation
ScheduledFileMessageCreateParams.withFileUrl(
String fileUrl, {
this.mimeType,
this.fileSize,
this.fileName,
this.data,
required this.scheduledAt,
this.customType,
this.metaArrays,
this.appleCriticalAlertOptions,
this.pushNotificationDeliveryOption = PushNotificationDeliveryOption.normal,
this.mentionType = MentionType.users,
}) : fileInfo = FileInfo.fromFileUrl(
fileName: fileName ?? 'image',
mimeType: mimeType ?? 'image/jpeg',
fileUrl: fileUrl,
fileSize: fileSize,
);