Message class
Constructors
- Message.new(String? sid, String? author, DateTime? dateCreated, DateTime? dateUpdated, String? lastUpdatedBy, String conversationSid, String? subject, String? body, String? participantSid, Participant? participant, int? messageIndex, MessageType type, bool hasMedia, MessageMedia? media, Attributes? attributes)
-
const
-
Message.fromMap(Map<
String, dynamic> map) -
Construct from a map.
factory
- Message.fromPigeon(MessageData messageData)
-
factory
Properties
- attributes → Attributes?
-
final
-
final
- body → String?
-
final
- conversationSid → String
-
final
- dateCreated → DateTime?
-
final
- dateUpdated → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMedia → bool
-
final
- lastUpdatedBy → String?
-
final
- media → MessageMedia?
-
final
- messageIndex → int?
-
final
- participant → Participant?
-
final
- participantSid → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sid → String?
-
final
- subject → String?
-
final
- type → MessageType
-
final
Methods
-
getConversation(
) → Future< Conversation?> -
getMediaUrl(
) → Future< String?> - Save media content stream that could be streamed or downloaded by client.
-
getParticipant(
) → Future< Participant?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAttributes(
Attributes attributes) → Future< void> -
toString(
) → String -
A string representation of this object.
override
-
updateMessageBody(
String messageBody) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited