showCompletionNotification static method
Future<void>
showCompletionNotification(
{ - required int notificationID,
- required String title,
- required String body,
- required String localeCode,
})
Implementation
static Future<void> showCompletionNotification({
required int notificationID,
required String title,
required String body,
required String localeCode,
}) async {
_lastProgress.remove(notificationID);
await AwesomeNotifications().createNotification(
content: NotificationContent(
id: notificationID,
channelKey: 'basic_channel', // Use basic_channel for completion
title: title,
body: body,
notificationLayout: NotificationLayout.Default,
locked: false,
autoDismissible: true,
),
);
}