diff --git a/README.md b/README.md index 72b89d80..7360c5b1 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ final result = await FileDownloader().download(task, ); // Act on the result -switch (result) { +switch (result.status) { case TaskStatus.complete: print('Success!');