copyWith method
GroupRoom
copyWith({
- Iterable<
String> ? blocks, - ChatValueTimestamp? createdAt,
- String? createdBy,
- RoomExtra? extra,
- String? id,
- bool? isAddMember,
- bool? isArchived,
- bool? isBlocked,
- bool? isBot,
- bool? isDeleted,
- bool? isGroup,
- bool? isLeaved,
- bool? isLocal,
- bool? isMuted,
- bool? isPinned,
- bool? isRemoved,
- bool? isRestricted,
- bool? isVerified,
- bool clearLastMessage = false,
- String? lastMessage,
- bool? lastMessageDeleted,
- String? lastMessageId,
- String? lastMessageSenderId,
- Map<
String, MessageStatus> ? lastMessageStatuses, - Iterable<
String> ? participants, - Iterable<
String> ? restricts, - Map<
String, int> ? unseenCounts, - ChatValueTimestamp? updatedAt,
- String? name,
- String? photo,
override
Implementation
@override
GroupRoom copyWith({
Iterable<String>? blocks,
ChatValueTimestamp? createdAt,
String? createdBy,
RoomExtra? extra,
String? id,
bool? isAddMember,
bool? isArchived,
bool? isBlocked,
bool? isBot,
bool? isDeleted,
bool? isGroup,
bool? isLeaved,
bool? isLocal,
bool? isMuted,
bool? isPinned,
bool? isRemoved,
bool? isRestricted,
bool? isVerified,
bool clearLastMessage = false,
String? lastMessage,
bool? lastMessageDeleted,
String? lastMessageId,
String? lastMessageSenderId,
Map<String, MessageStatus>? lastMessageStatuses,
Iterable<String>? participants,
Iterable<String>? restricts,
Map<String, int>? unseenCounts,
ChatValueTimestamp? updatedAt,
String? name,
String? photo,
}) {
return GroupRoom.from(
super.copyWith(
blocks: blocks,
createdAt: createdAt,
createdBy: createdBy,
extra: extra,
id: id,
isAddMember: isAddMember,
isArchived: isArchived,
isBlocked: isBlocked,
isBot: isBot,
isDeleted: isDeleted,
isGroup: isGroup,
isLeaved: isLeaved,
isLocal: isLocal,
isMuted: isMuted,
isPinned: isPinned,
isRemoved: isRemoved,
isRestricted: isRestricted,
isVerified: isVerified,
clearLastMessage: clearLastMessage,
lastMessage: lastMessage,
lastMessageDeleted: lastMessageDeleted,
lastMessageId: lastMessageId,
lastMessageSenderId: lastMessageSenderId,
lastMessageStatuses: lastMessageStatuses,
participants: participants,
restricts: restricts,
unseenCounts: unseenCounts,
updatedAt: updatedAt,
),
name: name ?? this.name,
photo: photo ?? this.photo,
);
}