copyWith method

VersionRow copyWith({
  1. String? userId,
  2. Value<String?> favoriteChatsListVersion = const Value.absent(),
  3. Value<bool?> favoriteChatsSynchronized = const Value.absent(),
  4. Value<String?> chatContactsListVersion = const Value.absent(),
  5. Value<bool?> favoriteContactsSynchronized = const Value.absent(),
  6. Value<bool?> contactsSynchronized = const Value.absent(),
  7. Value<bool?> blocklistSynchronized = const Value.absent(),
  8. Value<String?> sessionsListVersion = const Value.absent(),
  9. Value<String?> blocklistVersion = const Value.absent(),
  10. 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,
    );