VideoCaptureOptions constructor
const
VideoCaptureOptions(
- int cameraId, {
- Duration? maxDuration,
- dynamic streamCallback(
- CameraImageData image
- 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.',
);