setFlashMode method
Set manually the FlashMode between FlashMode.none no flash FlashMode.on always flashing when taking photo FlashMode.auto let the camera decide if it should use flash or not FlashMode.always flash light stays open
Implementation
Future<void> setFlashMode(FlashMode flashMode) async {
await CamerawesomePlugin.setFlashMode(flashMode);
_flashModeController.sink.add(flashMode);
}