Checks if the provided callback is valid
typedef ProgressCallback = void Function(int downloaded, int total);