copyWith method
- FavoriteChatsListVersion? favoriteChatsListVersion,
- bool? favoriteChatsSynchronized,
- ChatContactsListVersion? chatContactsListVersion,
- bool? favoriteContactsSynchronized,
- bool? contactsSynchronized,
- bool? blocklistSynchronized,
- SessionsListVersion? sessionsListVersion,
- BlocklistVersion? blocklistVersion,
- 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,
);
}