UCameraDevice constructor
const
UCameraDevice({
- required String id,
- required String name,
- required UCameraFacing facing,
- UCameraLens lens = UCameraLens.unknown,
- int sensorOrientation = 0,
- bool hasFlash = false,
- bool isLogical = false,
- List<
String> physicalDeviceIds = const <String>[], - List<
double> focalLengths = const <double>[], - double minFocusDistance = 0,
- List<
UCameraFormat> formats = const <UCameraFormat>[], - double minZoom = 1,
- double maxZoom = 1,
- 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,
});