setSensorType method

void setSensorType(
  1. SensorType type,
  2. String deviceId
)

Implementation

void setSensorType(SensorType type, String deviceId) {
  final next = SensorConfig(
    captureDeviceId: deviceId,
    sensor: type == SensorType.trueDepth ? Sensors.front : Sensors.back,
    type: type,
  );
  cameraContext.setSensorConfig(next);
}