downloadWithProgress static method
Implementation
static Future<Uint8List?> downloadWithProgress(
String? url, {
void Function(int?, int)? onBytesReceived,
Duration? timeLimit,
}) async {
try {
Uint8List? response =
await ModernFormDownloadPlatformHelper.downloadWithProgress(
url,
onBytesReceived: onBytesReceived,
timeLimit: timeLimit,
);
return response;
} catch (e) {
print("ERROR ModernFormDownloadHelper.downloadWithProgress() --> $e");
return null;
}
}