Flutter: How can I make a stream produce objects in periodic manner?

I have this function that aims at producing a Quote object after every 5 seconds. Stream<Quote> quotesStream(Realm populatedRealm) async* { List<Quote> quotes = populatedRealm.all<Quote>().toList(); for (Quote aQuote in quotes) { // Wait for 5 seconds before yielding the next quote. Future<void>.delayed(const Duration(seconds: 5)); print(aQuote.quote); // Just to see what is going on. yield aQuote; }… Read More Flutter: How can I make a stream produce objects in periodic manner?