showCompletionNotification static method

Future<void> showCompletionNotification({
  1. required int notificationID,
  2. required String title,
  3. required String body,
  4. 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,
    ),
  );
}