ChatVoiceMessageBody class
~english The voice message body class. ~end
~chinese 语音消息体类。 ~end
- Inheritance
-
- Object
- ChatMessageBody
- ChatFileMessageBody
- ChatVoiceMessageBody
Constructors
- ChatVoiceMessageBody({dynamic localPath, int duration = 0, String? displayName, int? fileSize})
- ~english Creates a voice message.
- ChatVoiceMessageBody.fromJson({required Map map})
Properties
- displayName ↔ String?
-
~english
The attachment name.
~end
getter/setter pairinherited
- duration ↔ int
-
~english
The voice duration in seconds.
~end
latefinal
- fileSize ↔ int?
-
~english
The size of the attachment in bytes.
~end
getter/setter pairinherited
- fileStatus ↔ DownloadStatus
-
~english
The download status of the attachment.
~end
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- localPath ↔ String
-
~english
The local path of the attachment.
~end
latefinalinherited
- remotePath ↔ String?
-
~english
The attachment path in the server.
~end
getter/setter pairinherited
- 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 pairinherited
- 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