copyWith method

AgoraSettings copyWith({
  1. RtcEngine? engine,
  2. AgoraRtmChannel? agoraRtmChannel,
  3. AgoraRtmClient? agoraRtmClient,
  4. AgoraConnectionData? connectionData,
  5. List<AgoraUser>? users,
  6. AgoraUser? mainAgoraUser,
  7. bool? isLocalUserMuted,
  8. bool? isLocalVideoDisabled,
  9. bool? visible,
  10. ClientRoleType? clientRoleType,
  11. int? localUid,
  12. String? generatedToken,
  13. String? generatedRtmToken,
  14. String? generatedRtmId,
  15. bool? isLoggedIn,
  16. bool? isInChannel,
  17. bool? isActiveSpeakerDisabled,
  18. Layout? layoutType,
  19. bool? displaySnackbar,
  20. MicState? muteRequest,
  21. CameraState? cameraRequest,
  22. bool? showMicMessage,
  23. bool? showCameraMessage,
  24. Map<String, dynamic>? userdata,
  25. Map<String, Map<String, dynamic>>? userRtmMap,
  26. Map<int, String>? uidToUserIdMap,
  27. bool? isScreenShared,
  28. bool? turnOnScreenSharing,
  29. RecordingState? isCloudRecording,
  30. String? sid,
  31. String? resourceId,
})

Implementation

AgoraSettings copyWith({
  RtcEngine? engine,
  AgoraRtmChannel? agoraRtmChannel,
  AgoraRtmClient? agoraRtmClient,
  AgoraConnectionData? connectionData,
  List<AgoraUser>? users,
  AgoraUser? mainAgoraUser,
  bool? isLocalUserMuted,
  bool? isLocalVideoDisabled,
  bool? visible,
  ClientRoleType? clientRoleType,
  int? localUid,
  String? generatedToken,
  String? generatedRtmToken,
  String? generatedRtmId,
  bool? isLoggedIn,
  bool? isInChannel,
  bool? isActiveSpeakerDisabled,
  Layout? layoutType,
  bool? displaySnackbar,
  MicState? muteRequest,
  CameraState? cameraRequest,
  bool? showMicMessage,
  bool? showCameraMessage,
  Map<String, dynamic>? userdata,
  Map<String, Map<String, dynamic>>? userRtmMap,
  Map<int, String>? uidToUserIdMap,
  bool? isScreenShared,
  bool? turnOnScreenSharing,
  RecordingState? isCloudRecording,
  String? sid,
  String? resourceId,
}) {
  return AgoraSettings(
    engine: engine ?? this.engine,
    agoraRtmChannel: agoraRtmChannel ?? this.agoraRtmChannel,
    agoraRtmClient: agoraRtmClient ?? this.agoraRtmClient,
    connectionData: connectionData ?? this.connectionData,
    users: users ?? this.users,
    mainAgoraUser: mainAgoraUser ?? this.mainAgoraUser,
    isLocalUserMuted: isLocalUserMuted ?? this.isLocalUserMuted,
    isLocalVideoDisabled: isLocalVideoDisabled ?? this.isLocalVideoDisabled,
    visible: visible ?? this.visible,
    clientRoleType: clientRoleType ?? this.clientRoleType,
    localUid: localUid ?? this.localUid,
    generatedToken: generatedToken ?? this.generatedToken,
    generatedRtmToken: generatedRtmToken ?? this.generatedRtmToken,
    generatedRtmId: generatedRtmId ?? this.generatedRtmId,
    isLoggedIn: isLoggedIn ?? this.isLoggedIn,
    isInChannel: isInChannel ?? this.isInChannel,
    isActiveSpeakerDisabled:
        isActiveSpeakerDisabled ?? this.isActiveSpeakerDisabled,
    layoutType: layoutType ?? this.layoutType,
    displaySnackbar: displaySnackbar ?? this.displaySnackbar,
    muteRequest: muteRequest ?? this.muteRequest,
    cameraRequest: cameraRequest ?? this.cameraRequest,
    showMicMessage: showMicMessage ?? this.showMicMessage,
    showCameraMessage: showCameraMessage ?? this.showCameraMessage,
    userdata: userdata ?? this.userdata,
    userRtmMap: userRtmMap ?? this.userRtmMap,
    uidToUserIdMap: uidToUserIdMap ?? this.uidToUserIdMap,
    isScreenShared: isScreenShared ?? this.isScreenShared,
    turnOnScreenSharing: turnOnScreenSharing ?? this.turnOnScreenSharing,
    isCloudRecording: isCloudRecording ?? this.isCloudRecording,
    sid: sid ?? this.sid,
    resourceId: resourceId ?? this.resourceId,
  );
}