DownloadMediaBuilder constructor

const DownloadMediaBuilder({
  1. Key? key,
  2. required String url,
  3. void onInitialize(
    1. DownloadMediaBuilderController controller
    )?,
  4. Widget onSuccess(
    1. DownloadMediaSnapshot snapshot
    )?,
  5. Widget onLoading(
    1. DownloadMediaSnapshot snapshot
    )?,
  6. Widget onError(
    1. DownloadMediaSnapshot snapshot
    )?,
  7. Widget onCancel(
    1. DownloadMediaSnapshot snapshot
    )?,
  8. Widget onEncrypting(
    1. DownloadMediaSnapshot snapshot
    )?,
  9. Widget onDecrypting(
    1. DownloadMediaSnapshot snapshot
    )?,
  10. String? encryptionPassword,
  11. bool autoDownload = true,
  12. Widget onInitial(
    1. DownloadMediaSnapshot snapshot
    )?,
})

Implementation

const DownloadMediaBuilder({
  Key? key,
  required this.url,
  this.onInitialize,
  this.onSuccess,
  this.onLoading,
  this.onError,
  this.onCancel,
  this.onEncrypting,
  this.onDecrypting,
  this.encryptionPassword,
  this.autoDownload = true,
  this.onInitial,
}) : super(key: key);