Message class

Represents a text message from a certain user in a conversation, providing context for SmartReply to generate reply suggestions.

Constructors

Message({required String text, required int timestamp, required String userId})
Constructor to create an instance of Message.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Text of the chat message.
final
timestamp int
Timestamp of the chat message.
final
userId String
User id of the message sender.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a json representation of an instance of Message.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited