medium10 pts · first answer countscross-platform-mobiledartdart-async
What an async* function returns
What does this function return?
Stream<int> countdown() async* {
for (var i = 1; i <= 3; i++) {
await Future.delayed(const Duration(seconds: 1));
yield i;
}
}Discussion 0
Join free to post in the discussion.
Related questions
- Dart null-aware operatorsMobile App Developer
- Dart final versus constMobile App Developer
- What a BuildContext isMobile App Developer
- Reading the screen widthMobile App Developer
- Expanded inside a RowMobile App Developer
- ListView.builder for a long feedMobile App Developer
- Role of pubspec.yamlMobile App Developer
- Future or StreamMobile App Developer