From 93c175877acc458da74c80d6c2165ae4f6c61ab2 Mon Sep 17 00:00:00 2001 From: Alden Bansemer Date: Sun, 8 Oct 2023 19:24:26 -0700 Subject: [PATCH] Fix iOSBroadcastExtension always false after copyWith invoked (#380) * Fix iOSBroadcastExtension always false after copyWith invoked * Run dart formatter --- lib/src/track/options.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/track/options.dart b/lib/src/track/options.dart index 56188ab4..7fec1c31 100644 --- a/lib/src/track/options.dart +++ b/lib/src/track/options.dart @@ -126,6 +126,7 @@ class ScreenShareCaptureOptions extends VideoCaptureOptions { : super(params: captureOptions.params); ScreenShareCaptureOptions copyWith({ + bool? useiOSBroadcastExtension, bool? captureScreenAudio, VideoParameters? params, String? sourceId, @@ -134,6 +135,8 @@ class ScreenShareCaptureOptions extends VideoCaptureOptions { String? selfBrowserSurface, }) => ScreenShareCaptureOptions( + useiOSBroadcastExtension: + useiOSBroadcastExtension ?? this.useiOSBroadcastExtension, captureScreenAudio: captureScreenAudio ?? this.captureScreenAudio, params: params ?? this.params, sourceId: sourceId ?? deviceId,