NeomageNotification constructor

NeomageNotification({
  1. required String id,
  2. required String title,
  3. required String body,
  4. NotificationPriority priority = NotificationPriority.normal,
  5. List<NotificationAction> actions = const [],
  6. Duration? autoHide,
  7. String? category,
  8. Map<String, dynamic>? data,
})

Implementation

NeomageNotification({
  required this.id,
  required this.title,
  required this.body,
  this.priority = NotificationPriority.normal,
  this.actions = const [],
  this.autoHide,
  this.category,
  this.data,
}) : createdAt = DateTime.now();