ICustomNotificationContent constructor

ICustomNotificationContent(
  1. PushNotificationChannelConfig channelConfig,
  2. RemoteNotification notification, {
  3. NotificationLayout layout = NotificationLayout.Default,
  4. String? imageUrl,
  5. 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,
      );