copyWith method

GroupCall copyWith({
  1. int? id,
  2. int? uniqueId,
  3. String? title,
  4. String? inviteLink,
  5. int? paidMessageStarCount,
  6. int? scheduledStartDate,
  7. bool? enabledStartNotification,
  8. bool? isActive,
  9. bool? isVideoChat,
  10. bool? isLiveStory,
  11. bool? isRtmpStream,
  12. bool? isJoined,
  13. bool? needRejoin,
  14. bool? isOwned,
  15. bool? canBeManaged,
  16. int? participantCount,
  17. bool? hasHiddenListeners,
  18. bool? loadedAllParticipants,
  19. MessageSender? messageSenderId,
  20. List<GroupCallRecentSpeaker>? recentSpeakers,
  21. bool? isMyVideoEnabled,
  22. bool? isMyVideoPaused,
  23. bool? canEnableVideo,
  24. bool? muteNewParticipants,
  25. bool? canToggleMuteNewParticipants,
  26. bool? canSendMessages,
  27. bool? areMessagesAllowed,
  28. bool? canToggleAreMessagesAllowed,
  29. bool? canDeleteMessages,
  30. int? recordDuration,
  31. bool? isVideoRecorded,
  32. int? duration,
})

Implementation

GroupCall copyWith({
  int? id,
  int? uniqueId,
  String? title,
  String? inviteLink,
  int? paidMessageStarCount,
  int? scheduledStartDate,
  bool? enabledStartNotification,
  bool? isActive,
  bool? isVideoChat,
  bool? isLiveStory,
  bool? isRtmpStream,
  bool? isJoined,
  bool? needRejoin,
  bool? isOwned,
  bool? canBeManaged,
  int? participantCount,
  bool? hasHiddenListeners,
  bool? loadedAllParticipants,
  MessageSender? messageSenderId,
  List<GroupCallRecentSpeaker>? recentSpeakers,
  bool? isMyVideoEnabled,
  bool? isMyVideoPaused,
  bool? canEnableVideo,
  bool? muteNewParticipants,
  bool? canToggleMuteNewParticipants,
  bool? canSendMessages,
  bool? areMessagesAllowed,
  bool? canToggleAreMessagesAllowed,
  bool? canDeleteMessages,
  int? recordDuration,
  bool? isVideoRecorded,
  int? duration,
}) => GroupCall(
  id: id ?? this.id,
  uniqueId: uniqueId ?? this.uniqueId,
  title: title ?? this.title,
  inviteLink: inviteLink ?? this.inviteLink,
  paidMessageStarCount: paidMessageStarCount ?? this.paidMessageStarCount,
  scheduledStartDate: scheduledStartDate ?? this.scheduledStartDate,
  enabledStartNotification:
      enabledStartNotification ?? this.enabledStartNotification,
  isActive: isActive ?? this.isActive,
  isVideoChat: isVideoChat ?? this.isVideoChat,
  isLiveStory: isLiveStory ?? this.isLiveStory,
  isRtmpStream: isRtmpStream ?? this.isRtmpStream,
  isJoined: isJoined ?? this.isJoined,
  needRejoin: needRejoin ?? this.needRejoin,
  isOwned: isOwned ?? this.isOwned,
  canBeManaged: canBeManaged ?? this.canBeManaged,
  participantCount: participantCount ?? this.participantCount,
  hasHiddenListeners: hasHiddenListeners ?? this.hasHiddenListeners,
  loadedAllParticipants: loadedAllParticipants ?? this.loadedAllParticipants,
  messageSenderId: messageSenderId ?? this.messageSenderId,
  recentSpeakers: recentSpeakers ?? this.recentSpeakers,
  isMyVideoEnabled: isMyVideoEnabled ?? this.isMyVideoEnabled,
  isMyVideoPaused: isMyVideoPaused ?? this.isMyVideoPaused,
  canEnableVideo: canEnableVideo ?? this.canEnableVideo,
  muteNewParticipants: muteNewParticipants ?? this.muteNewParticipants,
  canToggleMuteNewParticipants:
      canToggleMuteNewParticipants ?? this.canToggleMuteNewParticipants,
  canSendMessages: canSendMessages ?? this.canSendMessages,
  areMessagesAllowed: areMessagesAllowed ?? this.areMessagesAllowed,
  canToggleAreMessagesAllowed:
      canToggleAreMessagesAllowed ?? this.canToggleAreMessagesAllowed,
  canDeleteMessages: canDeleteMessages ?? this.canDeleteMessages,
  recordDuration: recordDuration ?? this.recordDuration,
  isVideoRecorded: isVideoRecorded ?? this.isVideoRecorded,
  duration: duration ?? this.duration,
);