downloadPatchAssets method
Future<bool>
downloadPatchAssets({
- required UpdateManifest manifest,
- required void onProgress(
- double progress
override
Downloads patch binary assets with onProgress reporting.
Implementation
@override
Future<bool> downloadPatchAssets({
required UpdateManifest manifest,
required void Function(double progress) onProgress,
}) async {
for (int i = 1; i <= 10; i++) {
onProgress(i / 10.0);
}
return downloadShouldSucceed;
}