UploadTask constructor

const UploadTask({
  1. required String uploadId,
  2. required String filePath,
  3. required String url,
  4. String method = 'POST',
  5. Map<String, String> headers = const {},
  6. Map<String, String> fields = const {},
  7. String fileFieldName = 'file',
  8. String? notificationTitle,
  9. String? notificationDescription,
  10. bool showNotification = true,
})

Implementation

const UploadTask({
  required this.uploadId,
  required this.filePath,
  required this.url,
  this.method = 'POST',
  this.headers = const {},
  this.fields = const {},
  this.fileFieldName = 'file',
  this.notificationTitle,
  this.notificationDescription,
  this.showNotification = true,
});