PushNotification constructor
const
PushNotification({
- required String id,
- required String title,
- required String body,
- String? imageUrl,
- Map<
String, dynamic> ? data, - String? type,
- String? route,
- Map<
String, dynamic> ? routeParameters, - String? externalUrl,
- required DateTime receivedAt,
- bool isRead = false,
- bool receivedInForeground = false,
- NotificationPriority priority = NotificationPriority.defaultPriority,
- int? badge,
- String? sound,
- String? channelId,
- 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,
});