MessageEnvelope class
An envelope containing a Message
and a conversation identifier.
- Annotations
-
- @immutable
Constructors
- MessageEnvelope(Message message, String conversationId)
-
Create a new instance.
const
Properties
- conversationId → String
-
Conversation identifier
final
- from → String
-
Message.from
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Returns true if the message is empty.
no setter
- message → Message
-
Message data
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
Message.value
no setter
Methods
-
copyWith(
{Message? message, String? conversationId}) → MessageEnvelope - Create a copy of this instance with the supplied values.
-
copyWithValue(
String value) → MessageEnvelope - Convenience function for copying with new message content
-
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 Properties
- empty ↔ MessageEnvelope
-
Empty message
getter/setter pair