CaptureDevice constructor

CaptureDevice({
  1. required String uniqueId,
  2. required int position,
  3. required bool isSmoothAutoFocusSupported,
  4. required bool hasFlash,
  5. required bool hasTorch,
  6. required double maxAvailableTorchLevel,
})

Construct a CaptureDevice.

This is only visible for testing or extending. See: defaultDeviceWithMediaType CaptureDeviceDiscoverySession

Implementation

CaptureDevice({
  required this.uniqueId,
  required this.position,
  required this.isSmoothAutoFocusSupported,
  required this.hasFlash,
  required this.hasTorch,
  required this.maxAvailableTorchLevel,
});