the entry point function of Isolate can not marked as async


The example of isolate in flutter! does not work. the new isolate does not run. but if I remove the async of entry point function. it works fine. So, How can I make await operation in a new isolate in flutter.


There might be a Dart 2 bug.

If async doesn’t work, you can always use .then() instead of async and await to chain async calls.

Answered By – Günter Zöchbauer

Answer Checked By – Mary Flores (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *