UploadFile constructor Null safety

UploadFile(
  1. {required UploadTaskConfig config,
  2. dynamic onSendComplete(
    1. dynamic response,
    2. String versionId
    )?}
)

Implementation

UploadFile({required this.config, this.onSendComplete})
    : assert(config.file != null,
          'Please assign the value of file in the UploadTask Config'),
      assert(config.uploadType == UploadType.file,
          'Please set the upload file Type to UploadType.file');