createCustomNotificationWithActionButtons method
Future<void>
createCustomNotificationWithActionButtons(
{ - required String title,
- required String body,
- 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"}),
);
}