showUploadProgressNotification method

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

Mostra notificação de progresso de upload

Implementation

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