setSensorType method
- SensorType type,
- 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);
}