downloadProgress method
Implementation
@override
Stream<Map<String, dynamic>> downloadProgress() async* {
try {
downloadProgressStatus ??= downloadProgressEventChannel.receiveBroadcastStream()
.map((event) => Map<String, dynamic>.from(event));
} on PlatformException catch (e) {
debugPrint("PlatformException: ${e.code} - ${e.message}");
} catch (e) {
debugPrint("Exception: $e");
}
yield* downloadProgressStatus!;
}