UploadFile constructor Null safety
- {required UploadTaskConfig config,
- dynamic onSendComplete(
- dynamic response,
- 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');