ChatFileMessageBody class

~english The base class of file messages. ~end

~chinese 文件类消息的基类。 ~end

Inheritance
Implementers

Constructors

ChatFileMessageBody({required String localPath, String? displayName, int? fileSize, MessageType type = MessageType.FILE})
~english Creates a message with an attachment.
ChatFileMessageBody.fromJson({required Map map, MessageType type = MessageType.FILE})

Properties

displayName String?
~english The attachment name. ~end
getter/setter pair
fileSize int?
~english The size of the attachment in bytes. ~end
getter/setter pair
fileStatus DownloadStatus
~english The download status of the attachment. ~end
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
localPath String
~english The local path of the attachment. ~end
latefinal
remotePath String?
~english The attachment path in the server. ~end
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secret String?
~english The token used to get the attachment. ~end
getter/setter pair
type MessageType
~english Gets the chat message type. ~end
getter/setter pairinherited

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

Static Methods

downloadStatusFromInt(int? status) DownloadStatus