setFlashMode abstract method Null safety
- 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.
Implementation
Future<void> setFlashMode(FlashMode mode);