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:
        favoriteChatsListVersion ?? this.favoriteChatsListVersion,
    favoriteChatsSynchronized:
        favoriteChatsSynchronized ?? this.favoriteChatsSynchronized,
    chatContactsListVersion:
        chatContactsListVersion ?? this.chatContactsListVersion,
    favoriteContactsSynchronized:
        favoriteContactsSynchronized ?? this.favoriteContactsSynchronized,
    contactsSynchronized: contactsSynchronized ?? this.contactsSynchronized,
    blocklistSynchronized:
        blocklistSynchronized ?? this.blocklistSynchronized,
    sessionsListVersion: sessionsListVersion ?? this.sessionsListVersion,
    blocklistVersion: blocklistVersion ?? this.blocklistVersion,
    blocklistCount: blocklistCount ?? this.blocklistCount,
  );
}