disable method

Future<void> disable()

Disables the torch (flashlight) on the device.

Implementation

Future<void> disable() async {
  _cancelAllTimers();
  await TorchFlashlight.disableTorchFlashlight();
  _isEnabled = false;
}