copyWith method

AgoraSettings copyWith({
  1. RtcEngine? engine,
  2. AgoraConnectionData? connectionData,
  3. List<AgoraUser>? users,
  4. AgoraUser? mainAgoraUser,
  5. bool? isLocalUserMuted,
  6. bool? isLocalVideoDisabled,
  7. bool? visible,
  8. ClientRole? clientRole,
  9. int? localUid,
  10. String? generatedToken,
  11. bool? isActiveSpeakerDisabled,
  12. Layout? layoutType,
})

Implementation

AgoraSettings copyWith({
  RtcEngine? engine,
  AgoraConnectionData? connectionData,
  List<AgoraUser>? users,
  AgoraUser? mainAgoraUser,
  bool? isLocalUserMuted,
  bool? isLocalVideoDisabled,
  bool? visible,
  ClientRole? clientRole,
  int? localUid,
  String? generatedToken,
  bool? isActiveSpeakerDisabled,
  Layout? layoutType,
}) {
  return AgoraSettings(
    engine: engine ?? this.engine,
    connectionData: connectionData ?? this.connectionData,
    users: users ?? this.users,
    mainAgoraUser: mainAgoraUser ?? this.mainAgoraUser,
    isLocalUserMuted: isLocalUserMuted ?? this.isLocalUserMuted,
    isLocalVideoDisabled: isLocalVideoDisabled ?? this.isLocalVideoDisabled,
    visible: visible ?? this.visible,
    clientRole: clientRole ?? this.clientRole,
    localUid: localUid ?? this.localUid,
    generatedToken: generatedToken ?? this.generatedToken,
    isActiveSpeakerDisabled:
        isActiveSpeakerDisabled ?? this.isActiveSpeakerDisabled,
    layoutType: layoutType ?? this.layoutType,
  );
}