showBigTextNotification method

  1. @override
Future<void> showBigTextNotification({
  1. required MessageNotificationModel mNotif,
})
override

Implementation

@override
Future<void> showBigTextNotification({ required MessageNotificationModel mNotif }) async {
  BigTextStyleInformation bigTextStyleInformation = BigTextStyleInformation(
    mNotif.body, htmlFormatBigText: true,
    contentTitle: mNotif.title, htmlFormatContentTitle: true,
  );
  AndroidNotificationDetails androidPlatformChannelSpecifics = AndroidNotificationDetails(
    mNotif.channel.id,
    mNotif.channel.name,
    channelDescription: mNotif.channel.description,
    importance: Importance.max,
    priority: Priority.max,
    playSound: true,
    styleInformation: bigTextStyleInformation,
    sound: const RawResourceAndroidNotificationSound('notification'),
  );
  //var darwinNotificationDetails = const DarwinNotificationDetails();
  NotificationDetails platformChannelSpecifics = NotificationDetails(android: androidPlatformChannelSpecifics, );
  await flutterLocalNotificationsPlugin.show(mNotif.id, mNotif.title, mNotif.body, platformChannelSpecifics, payload: mNotif.payload.jsonEncodeString);
}