position property
The position of a camera on a device.
Implementation
@override
intf.CameraPosition get position {
switch (device.position) {
case CaptureDevicePosition.back:
return intf.CameraPosition.back;
case CaptureDevicePosition.front:
return CameraPosition.front;
case CaptureDevicePosition.unspecified:
return intf.CameraPosition.unspecified;
default:
throw UnsupportedError('CaptureDevicePosition not found.');
}
}