show method

void show(
  1. NotificationModel item
)

Implementation

void show(NotificationModel item) => _to.show(
  id: item.id,
  title: item.title,
  body: item.body,
  notificationDetails: const NotificationDetails(
    android: AndroidNotificationDetails(
      'channel',
      'channel_name',
      importance: Importance.max,
      priority: Priority.high,
      colorized: true,
    ),
    iOS: DarwinNotificationDetails(
      presentAlert: true,
      presentBadge: true,
      presentSound: true,
      interruptionLevel: InterruptionLevel.critical,
    ),
  ),
  payload: item.payload,
);