ForegroundDownloadEvent constructor

const ForegroundDownloadEvent({
  1. required ForegroundDownloadEventType type,
  2. required ForegroundDownloadState state,
  3. int? sessionId,
  4. String? savePath,
  5. int downloadedBytes = 0,
  6. int totalBytes = 0,
  7. double? progress,
  8. String? code,
  9. String? message,
  10. int networkRetryCount = 0,
  11. int validationRetryCount = 0,
})

Implementation

const ForegroundDownloadEvent({
  required this.type,
  required this.state,
  this.sessionId,
  this.savePath,
  this.downloadedBytes = 0,
  this.totalBytes = 0,
  this.progress,
  this.code,
  this.message,
  this.networkRetryCount = 0,
  this.validationRetryCount = 0,
});