I am using https://pub.dev/packages/camera.
When I am setting flash mode with:
_controller.setFlashMode(FlashMode.always);.
I am getting an error:
CameraException(setFlashModeFailed, Device does not have flash capabilities)
How can I check that device has a flash?