download method
Implementation
@override
Future<ParseWebFile> download({ProgressCallback? progressCallback}) async {
if (url == null) {
return this;
}
progressCallback ??= _progressCallback;
_cancelToken = CancelToken();
final ParseNetworkByteResponse response = await _client.getBytes(
url!,
onReceiveProgress: progressCallback,
cancelToken: _cancelToken,
);
file = response.bytes as Uint8List?;
return this;
}