copyAssetToLocalStorageWithProgress method
Implementation
@override
Stream<int> copyAssetToLocalStorageWithProgress(String assetName, String targetName) {
_getLocalFilePath(targetName).then(
(targetPath) => methodChannel.invokeMethod('copyAssetToLocalWithProgress', {
'assetName': 'assets/$assetName',
'targetPath': targetPath,
}),
);
return progressChannel.receiveBroadcastStream().map((event) => event as int);
}