copyWith method

ScreenShareCaptureOptions copyWith(
  1. {bool? captureScreenAudio,
  2. VideoParameters? params,
  3. String? sourceId,
  4. double? maxFrameRate,
  5. bool? preferCurrentTab,
  6. String? selfBrowserSurface}
)

Implementation

ScreenShareCaptureOptions copyWith({
  bool? captureScreenAudio,
  VideoParameters? params,
  String? sourceId,
  double? maxFrameRate,
  bool? preferCurrentTab,
  String? selfBrowserSurface,
}) =>
    ScreenShareCaptureOptions(
      captureScreenAudio: captureScreenAudio ?? this.captureScreenAudio,
      params: params ?? this.params,
      sourceId: sourceId ?? deviceId,
      maxFrameRate: maxFrameRate ?? this.maxFrameRate,
      preferCurrentTab: preferCurrentTab ?? this.preferCurrentTab,
      selfBrowserSurface: selfBrowserSurface ?? this.selfBrowserSurface,
    );