copyWith method
Implementation
Group copyWith({
String? groupId,
String? displayName,
int? discoveredAt,
int? lastSeenAt,
int? memberCount,
bool? isSubscribed,
Value<String?> metadata = const Value.absent(),
}) => Group(
groupId: groupId ?? this.groupId,
displayName: displayName ?? this.displayName,
discoveredAt: discoveredAt ?? this.discoveredAt,
lastSeenAt: lastSeenAt ?? this.lastSeenAt,
memberCount: memberCount ?? this.memberCount,
isSubscribed: isSubscribed ?? this.isSubscribed,
metadata: metadata.present ? metadata.value : this.metadata,
);