emergencyStop function

Future<void> emergencyStop()

🚨 PARADA DE EMERGÊNCIA - Força parada múltipla

Implementation

Future<void> emergencyStop() async {
  print('🚨 [EMERGENCY] ========== PARADA DE EMERGÊNCIA ==========');

  for (int i = 1; i <= 3; i++) {
    try {
      print('🚨 [EMERGENCY] Tentativa $i/3...');
      await StopouBlocker.stop();
      await Future.delayed(Duration(seconds: 2));
      print('🚨 [EMERGENCY] ✅ Tentativa $i concluída');
    } catch (e) {
      print('🚨 [EMERGENCY] ⚠️ Tentativa $i falhou: $e');
    }
  }

  print('🚨 [EMERGENCY] ✅ EMERGÊNCIA FINALIZADA');
}