VideoCaptureOptions constructor

const VideoCaptureOptions(
  1. int cameraId, {
  2. Duration? maxDuration,
  3. void streamCallback(
    1. CameraImageData image
    )?,
  4. CameraImageStreamOptions? streamOptions,
})

Constructs a new instance.

Implementation

const VideoCaptureOptions(
  this.cameraId, {
  this.maxDuration,
  this.streamCallback,
  this.streamOptions,
}) : assert(
        streamOptions == null || streamCallback != null,
        'Must specify streamCallback if providing streamOptions.',
      );