downloadable

Creator: coderz1093

Last updated:

0 purchases

downloadable Image
downloadable Images

Languages

Categories

Add to Cart

Description:

downloadable

downloadable #
Downloadable is a file that might be in internal storage or still not downloaded.
how to crate a downloadable
var downloadable = Downloadable(
downloadLink: 'www.example.com/files/downloadable.file',
fileAddress: tempFolder + '/files/downloadable.file',
);
copied to clipboard
check if its downloaded

var downloaded = await downloadable.downloaded;

copied to clipboard
start a download
if(
!downloaded){

var onDownloadComplete = (){
print('download complete!');
};

var progressStream = downloadable.download(onDownloadComplete);

progressStream.listen((p){
print('${p*100}%...');
});

}
copied to clipboard
Cancel a download
downloadable.cancel();
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.