OnDownloadError typedef

OnDownloadError = dynamic Function(String errorMessage)

errorMessage if download did not succeed for some reason, errorMessage will contains the failure reason e.g. the url is not correct 404 or the file is not accessible 400

Implementation

typedef OnDownloadError = Function(String errorMessage);