DisplayMediaStreamOptions constructor

DisplayMediaStreamOptions({
  1. dynamic video,
  2. dynamic audio,
  3. SelfCapturePreferenceEnum? selfBrowserSurface,
  4. SystemAudioPreferenceEnum? systemAudio,
  5. SurfaceSwitchingPreferenceEnum? surfaceSwitching,
})

Implementation

factory DisplayMediaStreamOptions(
        {dynamic video,
        dynamic audio,
        SelfCapturePreferenceEnum? selfBrowserSurface,
        SystemAudioPreferenceEnum? systemAudio,
        SurfaceSwitchingPreferenceEnum? surfaceSwitching}) =>
    DisplayMediaStreamOptions._(
        video: video ?? true,
        audio: audio ?? false,
        selfBrowserSurface: selfBrowserSurface?.value ?? undefined,
        systemAudio: systemAudio?.value ?? undefined,
        surfaceSwitching: surfaceSwitching?.value ?? undefined);