copyWith method

JoinGroupCall copyWith({
  1. int? groupCallId,
  2. MessageSender? participantId()?,
  3. int? audioSourceId,
  4. String? payload,
  5. bool? isMuted,
  6. bool? isMyVideoEnabled,
  7. String? inviteHash,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

JoinGroupCall copyWith({
  int? groupCallId,
  MessageSender? Function()? participantId,
  int? audioSourceId,
  String? payload,
  bool? isMuted,
  bool? isMyVideoEnabled,
  String? inviteHash,
}) =>
    JoinGroupCall(
      groupCallId: groupCallId ?? this.groupCallId,
      participantId:
          participantId != null ? participantId() : this.participantId,
      audioSourceId: audioSourceId ?? this.audioSourceId,
      payload: payload ?? this.payload,
      isMuted: isMuted ?? this.isMuted,
      isMyVideoEnabled: isMyVideoEnabled ?? this.isMyVideoEnabled,
      inviteHash: inviteHash ?? this.inviteHash,
    );