createCustomNotificationWithActionButtons method

Future<void> createCustomNotificationWithActionButtons({
  1. required String title,
  2. required String body,
  3. required String payload,
})

Implementation

Future<void> createCustomNotificationWithActionButtons({
   required String title,
  required String body,
  required String payload,
}) async {

  await awesomeNotifications.createNotification(
      content: NotificationContent(
          id: -1,
          channelKey: 'basic_channel',
          title: title,
          body: body,

          notificationLayout: NotificationLayout.Inbox,
          payload: { "tested": "payload"}),
    );
}