copyWith method

ChatsCompanion copyWith({
  1. Value<String>? id,
  2. Value<String?>? avatar,
  3. Value<String?>? name,
  4. Value<String>? members,
  5. Value<int>? kindIndex,
  6. Value<bool>? isHidden,
  7. Value<String?>? muted,
  8. Value<String?>? directLink,
  9. Value<PreciseDateTime>? createdAt,
  10. Value<PreciseDateTime>? updatedAt,
  11. Value<String>? lastReads,
  12. Value<PreciseDateTime?>? lastDelivery,
  13. Value<String?>? firstItem,
  14. Value<String?>? lastItem,
  15. Value<String?>? lastReadItem,
  16. Value<int>? unreadCount,
  17. Value<int>? totalCount,
  18. Value<String?>? ongoingCall,
  19. Value<double?>? favoritePosition,
  20. Value<int>? membersCount,
  21. Value<String>? ver,
  22. Value<String?>? lastItemCursor,
  23. Value<String?>? lastReadItemCursor,
  24. Value<String?>? recentCursor,
  25. Value<String?>? favoriteCursor,
  26. Value<int>? rowid,
})

Implementation

ChatsCompanion copyWith(
    {Value<String>? id,
    Value<String?>? avatar,
    Value<String?>? name,
    Value<String>? members,
    Value<int>? kindIndex,
    Value<bool>? isHidden,
    Value<String?>? muted,
    Value<String?>? directLink,
    Value<PreciseDateTime>? createdAt,
    Value<PreciseDateTime>? updatedAt,
    Value<String>? lastReads,
    Value<PreciseDateTime?>? lastDelivery,
    Value<String?>? firstItem,
    Value<String?>? lastItem,
    Value<String?>? lastReadItem,
    Value<int>? unreadCount,
    Value<int>? totalCount,
    Value<String?>? ongoingCall,
    Value<double?>? favoritePosition,
    Value<int>? membersCount,
    Value<String>? ver,
    Value<String?>? lastItemCursor,
    Value<String?>? lastReadItemCursor,
    Value<String?>? recentCursor,
    Value<String?>? favoriteCursor,
    Value<int>? rowid}) {
  return ChatsCompanion(
    id: id ?? this.id,
    avatar: avatar ?? this.avatar,
    name: name ?? this.name,
    members: members ?? this.members,
    kindIndex: kindIndex ?? this.kindIndex,
    isHidden: isHidden ?? this.isHidden,
    muted: muted ?? this.muted,
    directLink: directLink ?? this.directLink,
    createdAt: createdAt ?? this.createdAt,
    updatedAt: updatedAt ?? this.updatedAt,
    lastReads: lastReads ?? this.lastReads,
    lastDelivery: lastDelivery ?? this.lastDelivery,
    firstItem: firstItem ?? this.firstItem,
    lastItem: lastItem ?? this.lastItem,
    lastReadItem: lastReadItem ?? this.lastReadItem,
    unreadCount: unreadCount ?? this.unreadCount,
    totalCount: totalCount ?? this.totalCount,
    ongoingCall: ongoingCall ?? this.ongoingCall,
    favoritePosition: favoritePosition ?? this.favoritePosition,
    membersCount: membersCount ?? this.membersCount,
    ver: ver ?? this.ver,
    lastItemCursor: lastItemCursor ?? this.lastItemCursor,
    lastReadItemCursor: lastReadItemCursor ?? this.lastReadItemCursor,
    recentCursor: recentCursor ?? this.recentCursor,
    favoriteCursor: favoriteCursor ?? this.favoriteCursor,
    rowid: rowid ?? this.rowid,
  );
}