copyUrlToLocalStorageWithProgress method
Implementation
@override
Stream<int> copyUrlToLocalStorageWithProgress(String url, String targetName) {
_getLocalFilePath(targetName).then(
(targetPath) => methodChannel.invokeMethod('copyUrlToLocalWithProgress', {
'url': url,
'targetPath': targetPath,
}),
);
return progressChannel.receiveBroadcastStream().map((event) => event as int);
}