FileMessageCreateParams.withFileUrl constructor
- String fileUrl,
- {String? fileName,
- String? mimeType,
- int? fileSize,
- String? data,
- String? customType,
- MentionType? mentionType,
- List<
String> ? mentionedUserIds, - List<
MessageMetaArray> ? metaArrays, - int? parentMessageId,
- bool? replyToChannel,
- PushNotificationDeliveryOption pushNotificationDeliveryOption = PushNotificationDeliveryOption.normal,
- bool isPinnedMessage = false}
withFileUrl
Implementation
FileMessageCreateParams.withFileUrl(
String fileUrl, {
String? fileName,
String? mimeType,
int? fileSize,
String? data,
String? customType,
MentionType? mentionType,
List<String>? mentionedUserIds,
List<MessageMetaArray>? metaArrays,
int? parentMessageId,
bool? replyToChannel,
PushNotificationDeliveryOption pushNotificationDeliveryOption =
PushNotificationDeliveryOption.normal,
bool isPinnedMessage = false,
}) : fileInfo = FileInfo.fromFileUrl(
fileName: fileName ?? 'image',
mimeType: mimeType ?? 'image/jpeg',
fileUrl: fileUrl,
fileSize: fileSize,
),
super(
data: data,
customType: customType,
pushNotificationDeliveryOption: pushNotificationDeliveryOption,
metaArrays: metaArrays,
mentionType: mentionType ?? MentionType.users,
mentionedUserIds: mentionedUserIds,
parentMessageId: parentMessageId,
replyToChannel: replyToChannel ?? false,
isPinnedMessage: isPinnedMessage,
);