copyWith method
VideoChat
copyWith({
- int? groupCallId,
- bool? hasParticipants,
- MessageSender? defaultParticipantId()?,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
VideoChat copyWith({
int? groupCallId,
bool? hasParticipants,
MessageSender? Function()? defaultParticipantId,
}) =>
VideoChat(
groupCallId: groupCallId ?? this.groupCallId,
hasParticipants: hasParticipants ?? this.hasParticipants,
defaultParticipantId: defaultParticipantId != null
? defaultParticipantId()
: this.defaultParticipantId,
);