ChatFileMessageBody class

The base class of file messages.

Implementers

Constructors

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

Properties

displayName String?
The attachment name.
read / write
fileSize int?
The size of the attachment in bytes.
read / write
fileStatus DownloadStatus
The download status of the attachment.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
localPath String
The local path of the attachment.
latefinal
remotePath String?
The attachment path in the server.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
secret String?
The token used to get the attachment.
read / write
type MessageType
Gets the chat message type.
read / writeinherited

Methods

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

Operators

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

Static Methods

downloadStatusFromInt(int? status) DownloadStatus