Flutter camera plugin: how can I check that device has a flash?

Viewed 95

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?

1 Answers
Related