Is it possible to yield Stream updates within a listener? For example, the user stream is updated here and I have other user related data that I am listening to that I wish to update the same stream with.
Stream<void> _authStream() async* {
authChangesSubscription = FirebaseAuth.instance.authStateChanges();
await for (User? user in authChangesSubscription) {
// User updated
// Some other user data updated
MyChangeNotifier.listen(() {
// I'd like to yield the stream here.
});
yield null;
}
}
}