setFlashMode method

  1. @override
Future<void> setFlashMode(
  1. int cameraId,
  2. FlashMode mode
)

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),
      },
    );