dispose method
Dispose of secure_monitor service
Implementation
Future<void> dispose() async {
try {
_monitoringTimer?.cancel();
_threatAnalysisTimer?.cancel();
_autoResponseTimer?.cancel();
await _threatController.close();
await _statusController.close();
_isInitialized = false;
_isProtected = false;
_logSecurityEvent('secure_monitor service disposed', LogLevel.info);
} catch (e) {
_logSecurityEvent('Dispose failed: $e', LogLevel.error);
}
}