stopCustomBlink method

Future<void> stopCustomBlink()

Stops the custom blink pattern by canceling the timer and disabling the torch.

Implementation

Future<void> stopCustomBlink() async {
  _customBlinkTimer?.cancel();
  _customBlinkTimer = null;
  await TorchFlashlight.disableTorchFlashlight();
  _isEnabled = false;
}