We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b7ac15 commit 1d1fca5Copy full SHA for 1d1fca5
example/lib/home_page.dart
@@ -64,7 +64,7 @@ class _MyHomePageState extends State<MyHomePage> {
64
}
65
_port.listen((dynamic data) {
66
final taskId = (data as List<dynamic>)[0] as String;
67
- final status = data[1] as DownloadTaskStatus;
+ final status = DownloadTaskStatus(data[1] as int);
68
final progress = data[2] as int;
69
70
print(
@@ -99,7 +99,7 @@ class _MyHomePageState extends State<MyHomePage> {
99
);
100
101
IsolateNameServer.lookupPortByName('downloader_send_port')
102
- ?.send([id, status, progress]);
+ ?.send([id, status.value, progress]);
103
104
105
Widget _buildDownloadList() {
0 commit comments