Trying to run the following Flutter code in android Studio

Link to code on github https://github.com/cyeh1234/bloc_bug.git
Got the following error:

https://www.mitrais.com/news-updates/getting-started-with-flutter-bloc-pattern/
Correct output

Remove <int> will fix this issue.
await Future.delayed(Duration(seconds: 3));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With