MessageType enum

An enumeration of message types.

This enum defines the various types of messages that can be sent or received within the application. Each message type is associated with a specific string value that represents the type in a more readable format.

Inheritance
Available extensions

Values

text → const MessageType

Represents a text message.

const MessageType('TEXT')
image → const MessageType

Represents an image message.

const MessageType('IMAGE')
audio → const MessageType

Represents an audio message.

const MessageType('AUDIO')
audioRecorded → const MessageType

Represents an audio message that has been recorded.

const MessageType('AUDIO_RECORDED')
video → const MessageType

Represents a video message.

const MessageType('VIDEO')
contact → const MessageType

Represents a contact message.

const MessageType('CONTACT')
document → const MessageType

Represents a document message.

const MessageType('DOCUMENT')
location → const MessageType

Represents a location message.

const MessageType('LOCATION')
notification → const MessageType

Represents a notification message.

const MessageType('NOTIFICATION')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The enum constructor takes a value parameter which is the string representation of the message type.
final

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

Constants

isAudio → const String
The string representation for an audio message.
isAudioRecorded → const String
The string representation for an audio message that has been recorded.
isContact → const String
The string representation for a contact message.
isDocument → const String
The string representation for a document message.
isImage → const String
The string representation for an image message.
isLocation → const String
The string representation for a location message.
isNotification → const String
The string representation for a notification message.
isText → const String
The string representation for a text message.
isVideo → const String
The string representation for a video message.
values → const List<MessageType>
A constant List of the values in this enum, in order of their declaration.