enableTorch method
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 {
await methodChannel.invokeMethod('enable_torch', {'mode': mode.name});
}