enableTorch method

  1. @override
Future<void> enableTorch({
  1. FlashMode mode = FlashMode.torch,
})
override

Enables the torch with specified flash mode. mode - The flash mode to use (torch or flash).

Implementation

@override
Future<void> enableTorch({FlashMode mode = FlashMode.torch}) async {
  throw UnsupportedError('Torch control is not supported on web platform');
}