copyWith method
VersionRow
copyWith({ - String? userId,
- Value<String?> favoriteChatsListVersion = const Value.absent(),
- Value<bool?> favoriteChatsSynchronized = const Value.absent(),
- Value<String?> chatContactsListVersion = const Value.absent(),
- Value<bool?> favoriteContactsSynchronized = const Value.absent(),
- Value<bool?> contactsSynchronized = const Value.absent(),
- Value<bool?> blocklistSynchronized = const Value.absent(),
- Value<String?> sessionsListVersion = const Value.absent(),
- Value<String?> blocklistVersion = const Value.absent(),
- Value<int?> blocklistCount = const Value.absent(),
})
Implementation
VersionRow copyWith(
{String? userId,
Value<String?> favoriteChatsListVersion = const Value.absent(),
Value<bool?> favoriteChatsSynchronized = const Value.absent(),
Value<String?> chatContactsListVersion = const Value.absent(),
Value<bool?> favoriteContactsSynchronized = const Value.absent(),
Value<bool?> contactsSynchronized = const Value.absent(),
Value<bool?> blocklistSynchronized = const Value.absent(),
Value<String?> sessionsListVersion = const Value.absent(),
Value<String?> blocklistVersion = const Value.absent(),
Value<int?> blocklistCount = const Value.absent()}) =>
VersionRow(
userId: userId ?? this.userId,
favoriteChatsListVersion: favoriteChatsListVersion.present
? favoriteChatsListVersion.value
: this.favoriteChatsListVersion,
favoriteChatsSynchronized: favoriteChatsSynchronized.present
? favoriteChatsSynchronized.value
: this.favoriteChatsSynchronized,
chatContactsListVersion: chatContactsListVersion.present
? chatContactsListVersion.value
: this.chatContactsListVersion,
favoriteContactsSynchronized: favoriteContactsSynchronized.present
? favoriteContactsSynchronized.value
: this.favoriteContactsSynchronized,
contactsSynchronized: contactsSynchronized.present
? contactsSynchronized.value
: this.contactsSynchronized,
blocklistSynchronized: blocklistSynchronized.present
? blocklistSynchronized.value
: this.blocklistSynchronized,
sessionsListVersion: sessionsListVersion.present
? sessionsListVersion.value
: this.sessionsListVersion,
blocklistVersion: blocklistVersion.present
? blocklistVersion.value
: this.blocklistVersion,
blocklistCount:
blocklistCount.present ? blocklistCount.value : this.blocklistCount,
);