download method
void
download({})
Implementation
void download({
String? url,
File? file,
void Function(int received, int total, bool failed)? onReceiveProgress,
void Function()? onDone,
}) {
if (status == UpgradeStatus.loadingLocalConfig || status == UpgradeStatus.dismissed) return;
if (installer == null || !installer!.hasDownload()) return;
installer?.download(
url: url,
file: file,
onReceiveProgress: onReceiveProgress,
onDone: onDone,
);
}