UCameraDevice constructor

const UCameraDevice({
  1. required String id,
  2. required String name,
  3. required UCameraFacing facing,
  4. UCameraLens lens = UCameraLens.unknown,
  5. int sensorOrientation = 0,
  6. bool hasFlash = false,
  7. bool isLogical = false,
  8. List<String> physicalDeviceIds = const <String>[],
  9. List<double> focalLengths = const <double>[],
  10. double minFocusDistance = 0,
  11. List<UCameraFormat> formats = const <UCameraFormat>[],
  12. double minZoom = 1,
  13. double maxZoom = 1,
  14. double neutralZoom = 1,
})

Implementation

const UCameraDevice({
  required this.id,
  required this.name,
  required this.facing,
  this.lens = UCameraLens.unknown,
  this.sensorOrientation = 0,
  this.hasFlash = false,
  this.isLogical = false,
  this.physicalDeviceIds = const <String>[],
  this.focalLengths = const <double>[],
  this.minFocusDistance = 0,
  this.formats = const <UCameraFormat>[],
  this.minZoom = 1,
  this.maxZoom = 1,
  this.neutralZoom = 1,
});