CameraDevice constructor

const CameraDevice({
  1. required String id,
  2. required String name,
  3. required int position,
  4. int lensType = 0,
  5. required int sensorOrientation,
  6. double minZoom = 1.0,
  7. required double maxZoom,
  8. required double neutralZoom,
  9. int hasFlash = 0,
  10. int hasTorch = 0,
  11. required int maxPhotoWidth,
  12. required int maxPhotoHeight,
  13. double focalLength = 3.5,
  14. double aperture = 1.8,
})

Implementation

const CameraDevice({
  required this.id,
  required this.name,
  required this.position,
  this.lensType = 0,
  required this.sensorOrientation,
  this.minZoom = 1.0,
  required this.maxZoom,
  required this.neutralZoom,
  this.hasFlash = 0,
  this.hasTorch = 0,
  required this.maxPhotoWidth,
  required this.maxPhotoHeight,
  this.focalLength = 3.5,
  this.aperture = 1.8,
});