setFlashMode method
Sets the flash mode for the selected camera.
On Web FlashMode.auto
corresponds to FlashMode.always
.
Implementation
@override
Future<void> setFlashMode(int cameraId, FlashMode mode) => _channel.invokeMethod<void>(
'setFlashMode',
<String, dynamic>{
'cameraId': cameraId,
'mode': _serializeFlashMode(mode),
},
);