showNotification method

dynamic showNotification(
  1. Notif notif
)

Implementation

showNotification(Notif notif) async {
  var android = new AndroidNotificationDetails(
      CHANNEL_ID_NAME, CHANNEL_ID_NAME,
      priority: Priority.high, importance: Importance.max,
  );
  var iOS = new IOSNotificationDetails();
  var platform = new NotificationDetails(android: android, iOS: iOS);
  await flutterLocalNotificationsPlugin.show(
    random.nextInt(1000), notif.title, notif.content,
    platform, payload: getNotifJson(notif)
  );
}