sourceDeviceType property

String? sourceDeviceType
final

The device type of the source camera providing the photo.

When capturing a photo using a virtual device, you may query this property to find out the source type of the photo. For example, on a dual camera, resulting photos have a source device type of CaptureDeviceType.builtInDualCamera or CaptureDeviceType.builtInTelephotoCamera. For all other types of capture, the source device type is the same as the device type of the capture device connected to the photo output.

This method returns null if the source of the photo is not a capture device or iOS version is < 13.

Implementation

final String? sourceDeviceType;