toggleTorch method
Toggles the torch (flashlight) between on and off. See setTorchMode and isTorchEnabled.
Implementation
Future<void> toggleTorch() => setTorchMode(!_torchEnabled);
Toggles the torch (flashlight) between on and off. See setTorchMode and isTorchEnabled.
Future<void> toggleTorch() => setTorchMode(!_torchEnabled);