preferredCamera property
The preferred camera position to use when capturing document. This value represents the user’s choice of front or back camera.
The system determines the actual physical camera device.
Default: PrefferedCamera.back
Implementation
PreferredCamera preferredCamera = PreferredCamera.back;