ICustomNotificationContent constructor
ICustomNotificationContent(
- PushNotificationChannelConfig channelConfig,
- RemoteNotification notification, {
- NotificationLayout layout = NotificationLayout.Default,
- String? imageUrl,
- Map<
String, String?> ? payload,
Implementation
ICustomNotificationContent(
PushNotificationChannelConfig channelConfig,
RemoteNotification notification, {
NotificationLayout layout = NotificationLayout.Default,
String? imageUrl,
super.payload,
}) : super(
id: DateTime.now().millisecondsSinceEpoch.hashCode,
channelKey: channelConfig.channelKey,
title: notification.title,
body: notification.body,
criticalAlert: true,
notificationLayout: layout,
bigPicture: imageUrl,
);