showNotification method

Future<void> showNotification({
  1. required String title,
  2. required String message,
  3. String? channelId,
  4. int? notificationId,
})

Mostra uma notificação simples

Implementation

Future<void> showNotification({
  required String title,
  required String message,
  String? channelId,
  int? notificationId,
}) async {
  if (!isEnabled) return;

  final id = notificationId ?? _generateNotificationId();
  _activeNotifications[id] = title;

  // Para desenvolvimento, apenas log no console
  // Em produção, aqui seria integrado com flutter_local_notifications
  debugPrint('[Syncly Notification] $title: $message');

  // Simular notificação visual no debug
  if (kDebugMode) {
    debugPrint('🔔 [$title] $message');
  }
}