SensorConfig.single constructor
SensorConfig.single({
- Sensor? sensor,
- FlashMode flashMode = FlashMode.none,
- double zoom = 0.0,
- CameraAspectRatios aspectRatio = CameraAspectRatios.ratio_4_3,
Implementation
SensorConfig.single({
Sensor? sensor,
FlashMode flashMode = FlashMode.none,
double zoom = 0.0,
CameraAspectRatios aspectRatio = CameraAspectRatios.ratio_4_3,
}) : this._(
sensors: [sensor ?? Sensor.position(SensorPosition.back)],
flash: flashMode,
currentZoom: zoom,
aspectRatio: aspectRatio,
);