toDto method

DtoChat toDto(
  1. RecentChatsCursor? recent,
  2. FavoriteChatsCursor? favorite
)

Constructs a new DtoChat from this ChatMixin.

Implementation

DtoChat toDto(RecentChatsCursor? recent, FavoriteChatsCursor? favorite) =>
    DtoChat(
      toModel(),
      ver,
      lastItem?.cursor,
      lastReadItem?.cursor,
      recent,
      favorite,
    );