PushNotification constructor

const PushNotification({
  1. required String id,
  2. required String title,
  3. required String body,
  4. String? imageUrl,
  5. Map<String, dynamic>? data,
  6. String? type,
  7. String? route,
  8. Map<String, dynamic>? routeParameters,
  9. String? externalUrl,
  10. required DateTime receivedAt,
  11. bool isRead = false,
  12. bool receivedInForeground = false,
  13. NotificationPriority priority = NotificationPriority.defaultPriority,
  14. int? badge,
  15. String? sound,
  16. String? channelId,
  17. Map<String, dynamic>? extensions,
})

Implementation

const PushNotification({
  required this.id,
  required this.title,
  required this.body,
  this.imageUrl,
  this.data,
  this.type,
  this.route,
  this.routeParameters,
  this.externalUrl,
  required this.receivedAt,
  this.isRead = false,
  this.receivedInForeground = false,
  this.priority = NotificationPriority.defaultPriority,
  this.badge,
  this.sound,
  this.channelId,
  super.extensions,
});