showBigTextNotification2 static method

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

Implementation

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