copyWith method

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

Implementation

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