EMFileMessageBody class Null safety

The base class of file messages.

Implementers

Constructors

EMFileMessageBody({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-only, inherited
localPath String
The local path of the attachment.
late, final
remotePath String?
The attachment path in the server.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secret String?
The token used to get the attachment.
read / write
type MessageType
Gets the chat message type.
read / write, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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