NotificationEntity constructor

const NotificationEntity({
  1. required String id,
  2. required String title,
  3. required String body,
  4. required DateTime timestamp,
  5. Map<String, dynamic> data = const <String, dynamic>{},
  6. String? imageUrl,
  7. String? icon,
  8. String? channelId,
  9. bool isDelivered = false,
  10. bool isRead = false,
  11. DateTime? deliveryTime,
  12. DateTime? openedTime,
  13. NotificationSource source = NotificationSource.local,
})

Creates a new notification entity.

Implementation

const NotificationEntity({
  required this.id,
  required this.title,
  required this.body,
  required this.timestamp,
  this.data = const <String, dynamic>{},
  this.imageUrl,
  this.icon,
  this.channelId,
  this.isDelivered = false,
  this.isRead = false,
  this.deliveryTime,
  this.openedTime,
  this.source = NotificationSource.local,
});