toSystemNotification function

SystemAppNotification toSystemNotification(
  1. AppNotification notification
)

Implementation

SystemAppNotification toSystemNotification(AppNotification notification) {
  return SystemAppNotification.from(
    notification,
    iOS: IosAppNotification(
      title: notification.getDisplayTitle(),
      body: notification.getFullDisplayBody(),
    ),
    android: AndroidAppNotification.withType(
      title: notification.getDisplayTitle(),
      body: notification.getDisplayBody(),
      bigText: notification.getFullDisplayBody(),
      contentTitle: notification.getDisplayTitle(),
      summaryText: notification.getDisplaySubtitle(),
      type: notification.type,
    ),
  );
}