copyWith method

VideoPublishOptions copyWith(
  1. {VideoEncoding? videoEncoding,
  2. bool? simulcast,
  3. List<VideoParameters>? videoSimulcastLayers,
  4. List<VideoParameters>? screenShareSimulcastLayers,
  5. String? videoCodec,
  6. BackupVideoCodec? backupCodec,
  7. String? scalabilityMode}
)

Implementation

VideoPublishOptions copyWith({
  VideoEncoding? videoEncoding,
  bool? simulcast,
  List<VideoParameters>? videoSimulcastLayers,
  List<VideoParameters>? screenShareSimulcastLayers,
  String? videoCodec,
  BackupVideoCodec? backupCodec,
  String? scalabilityMode,
}) =>
    VideoPublishOptions(
      videoEncoding: videoEncoding ?? this.videoEncoding,
      simulcast: simulcast ?? this.simulcast,
      videoSimulcastLayers: videoSimulcastLayers ?? this.videoSimulcastLayers,
      screenShareSimulcastLayers:
          screenShareSimulcastLayers ?? this.screenShareSimulcastLayers,
      videoCodec: videoCodec ?? this.videoCodec,
      backupCodec: backupCodec ?? this.backupCodec,
      scalabilityMode: scalabilityMode ?? this.scalabilityMode,
    );