NotificationEntity constructor
const
NotificationEntity({
- required String id,
- required String title,
- required String body,
- required DateTime timestamp,
- Map<
String, dynamic> data = const <String, dynamic>{}, - String? imageUrl,
- String? icon,
- String? channelId,
- bool isDelivered = false,
- bool isRead = false,
- DateTime? deliveryTime,
- DateTime? openedTime,
- 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,
});