copyWith method

SessionData copyWith({
  1. FavoriteChatsListVersion? favoriteChatsListVersion,
  2. bool? favoriteChatsSynchronized,
  3. ChatContactsListVersion? chatContactsListVersion,
  4. bool? favoriteContactsSynchronized,
  5. bool? contactsSynchronized,
  6. bool? blocklistSynchronized,
  7. SessionsListVersion? sessionsListVersion,
  8. BlocklistVersion? blocklistVersion,
  9. int? blocklistCount,
})

Returns a copy of this SessionData.

Implementation

SessionData copyWith({
  FavoriteChatsListVersion? favoriteChatsListVersion,
  bool? favoriteChatsSynchronized,
  ChatContactsListVersion? chatContactsListVersion,
  bool? favoriteContactsSynchronized,
  bool? contactsSynchronized,
  bool? blocklistSynchronized,
  SessionsListVersion? sessionsListVersion,
  BlocklistVersion? blocklistVersion,
  int? blocklistCount,
}) {
  return SessionData(
    favoriteChatsListVersion:
        this.favoriteChatsListVersion ?? favoriteChatsListVersion,
    favoriteChatsSynchronized:
        this.favoriteChatsSynchronized ?? favoriteChatsSynchronized,
    chatContactsListVersion:
        this.chatContactsListVersion ?? chatContactsListVersion,
    favoriteContactsSynchronized:
        this.favoriteContactsSynchronized ?? favoriteContactsSynchronized,
    contactsSynchronized: this.contactsSynchronized ?? contactsSynchronized,
    blocklistSynchronized:
        this.blocklistSynchronized ?? blocklistSynchronized,
    sessionsListVersion: this.sessionsListVersion ?? sessionsListVersion,
    blocklistVersion: this.blocklistVersion ?? blocklistVersion,
    blocklistCount: this.blocklistCount ?? blocklistCount,
  );
}