DownloadFile constructor Null safety

DownloadFile(
  1. {required DownloadFileConfig config,
  2. dynamic onRecieveProgress(
    1. int totalDownloaded,
    2. int totalSize
    )?,
  3. dynamic errorCallback(
    1. String errorMessage
    )?}
)

Implementation

DownloadFile(
    {required this.config, this.onRecieveProgress, this.errorCallback});