BackgroundPreviewWidget constructor

const BackgroundPreviewWidget({
  1. Key? key,
  2. VirtualBackground? selectedBackground,
  3. MediaStream? existingStream,
  4. bool isEnabled = true,
  5. double? width,
  6. double? height,
  7. VoidCallback? onPreviewReady,
  8. void onError(
    1. String error
    )?,
})

Implementation

const BackgroundPreviewWidget({
  super.key,
  this.selectedBackground,
  this.existingStream,
  this.isEnabled = true,
  this.width,
  this.height,
  this.onPreviewReady,
  this.onError,
});