disable method
Disables the torch (flashlight) on the device.
Implementation
Future<void> disable() async {
_cancelAllTimers();
await TorchFlashlight.disableTorchFlashlight();
_isEnabled = false;
}
Disables the torch (flashlight) on the device.
Future<void> disable() async {
_cancelAllTimers();
await TorchFlashlight.disableTorchFlashlight();
_isEnabled = false;
}