FileMessageCreateParams class

Represents a file message params.

Inheritance

Constructors

FileMessageCreateParams.withFile(File file, {String? fileName, String? data, String? customType, MentionType? mentionType, List<String>? mentionedUserIds, List<MessageMetaArray>? metaArrays, int? parentMessageId, bool? replyToChannel, PushNotificationDeliveryOption pushNotificationDeliveryOption = PushNotificationDeliveryOption.normal, bool isPinnedMessage = false})
withFile
FileMessageCreateParams.withFileBytes(Uint8List fileBytes, {String? fileName, String? mimeType, String? data, String? customType, MentionType? mentionType, List<String>? mentionedUserIds, List<MessageMetaArray>? metaArrays, int? parentMessageId, bool? replyToChannel, PushNotificationDeliveryOption pushNotificationDeliveryOption = PushNotificationDeliveryOption.normal, bool isPinnedMessage = false})
withFileBytes
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})
withFileUrl
FileMessageCreateParams.withMessage(FileMessage fileMessage)
withMessage

Properties

customType String?
The custom type of the message. Defaults to null.
getter/setter pairinherited
data String?
The data of the message. Defaults to null.
getter/setter pairinherited
fileInfo FileInfo
The file info.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isPinnedMessage bool
Whether the message should be pinned to the channel. Defaults to false.
getter/setter pairinherited
mentionedUserIds List<String>?
The mentioned user ids of the message. If it hasn't set before, it returns null.
getter/setter pairinherited
mentionType MentionType
The mention type of the message. Defaults to MentionType.users.
getter/setter pairinherited
metaArrays List<MessageMetaArray>?
The meta arrays of the message. Defaults to null.
getter/setter pairinherited
parentMessageId int?
The parent message id of the message. Defaults to 0.
getter/setter pairinherited
pushNotificationDeliveryOption PushNotificationDeliveryOption
The push notification delivery option user of the message.
getter/setter pairinherited
replyToChannel bool
Whether the message should also be sent to the channel. Defaults to false. Only works when the parentMessageId is set.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnailSizes List<Size>?
The file's thumbnail sizes of the messages. Defaults to null.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited