toDto method

DtoChatMessage toDto(
  1. ChatItemsCursor cursor
)

Constructs a new DtoChatMessage from this NestedChatMessageMixin.

Implementation

DtoChatMessage toDto(ChatItemsCursor cursor) => DtoChatMessage(
  toModel(),
  cursor,
  ver,
  repliesTo.map((e) => e.original?.cursor).toList(),
);