A value of type 'StreamSubscription<User>' can't be returned from function 'usera' because it has a return type of 'Stream<UserCurrent>' code example
Example: streams flutter
void messagesStream()async{
await for( var snapshot in _firestore.collection('messages').snapshots()){
for (var message in snapshot.documents) {
print(message.data);
};
}
//can be used for chat app