Conversation class

This represents an ongoing conversation. It can be provided to Client to listMessages and sendMessage. The Client also allows you to streamMessages from this Conversation.

It attempts to give uniform shape to v1 and v2 conversations.

Constructors

Conversation.v1(DateTime createdAt, {required EthereumAddress me, required EthereumAddress peer})
Conversation.v2(InvitationV1 invite, DateTime createdAt, {required EthereumAddress me, required EthereumAddress peer})

Properties

conversationId String
This distinctly identifies between two addresses. Note: this will be empty for older v1 conversations.
final
createdAt DateTime
When the conversation was first created.
final
hashCode int
The hash code for this object.
no setterinherited
invite InvitationV1
This contains the invitation to this conversation. Note: this will be empty for older v1 conversations.
final
me → EthereumAddress
This is the address for me, the configured client user.
final
metadata Map<String, String>
This contains any additional conversation context. Note: this will be empty for older v1 conversations.
final
peer → EthereumAddress
This is the address of the peer that I am talking to.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topic String
This is the underlying unique topic name for this conversation. NOTE: this is a good identifier for local caching purposes.
final
version Message_Version
This indicates whether this a v1 or v2 conversation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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