import 'package:background_downloader/background_downloader.dart'; abstract interface class IUploadRepository { void Function(TaskStatusUpdate)? onUploadStatus; void Function(TaskProgressUpdate)? onTaskProgress; Future upload(UploadTask task); Future cancel(String id); Future deleteAllTrackingRecords(); Future deleteRecordsWithIds(List id); }