SensorConfig.single constructor

SensorConfig.single({
  1. Sensor? sensor,
  2. FlashMode flashMode = FlashMode.none,
  3. double zoom = 0.0,
  4. 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,
      );