copyUrlToLocalStorageWithProgress method

  1. @override
Stream<int> copyUrlToLocalStorageWithProgress(
  1. String url,
  2. String targetName
)
override

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);
}