showTextNotification2 static method

Future<void> showTextNotification2(
  1. String title,
  2. String body,
  3. String orderID,
  4. FlutterLocalNotificationsPlugin fln,
)

Implementation

static Future<void> showTextNotification2(String title, String body, String orderID, FlutterLocalNotificationsPlugin fln) async {
  const AndroidNotificationDetails androidPlatformChannelSpecifics = AndroidNotificationDetails(
    'CCG_delivery', 'CCG_delivery name', playSound: true,
    importance: Importance.max, priority: Priority.max, sound: RawResourceAndroidNotificationSound('notification'),
  );
  const NotificationDetails platformChannelSpecifics = NotificationDetails(android: androidPlatformChannelSpecifics);
  await fln.show(0, title, body, platformChannelSpecifics, payload: orderID);
}