showDownloadProgressNotification method

Future<void> showDownloadProgressNotification({
  1. required String fileName,
  2. required int progress,
  3. required int total,
  4. int? notificationId,
})

Mostra notificação de progresso de download

Implementation

Future<void> showDownloadProgressNotification({
  required String fileName,
  required int progress,
  required int total,
  int? notificationId,
}) async {
  await showProgressNotification(
    title: 'Download',
    message: 'Baixando $fileName...',
    progress: progress,
    maxProgress: total,
    notificationId: notificationId,
  );
}