ScheduledFileMessageCreateParams.withFileUrl constructor

ScheduledFileMessageCreateParams.withFileUrl(
  1. String fileUrl,
  2. {String? mimeType,
  3. int? fileSize,
  4. String? fileName,
  5. String? data,
  6. required int scheduledAt,
  7. String? customType,
  8. List<MessageMetaArray>? metaArrays,
  9. AppleCriticalAlertOptions? appleCriticalAlertOptions,
  10. PushNotificationDeliveryOption pushNotificationDeliveryOption = PushNotificationDeliveryOption.normal,
  11. 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,
      );