setFlashMode abstract method Null safety

Future<void> setFlashMode(
  1. FlashMode mode

Set the flash mode when taking images.

Users should call supportedFlashModes before calling this method. Not all FlashModes are supported on all devices. Some won't support any.

This should only be called after passing as a parameter to a CameraController and CameraController.initialize has been called.


Future<void> setFlashMode(FlashMode mode);