Is there a better way to add response to a stream i flutter from a void method without using Future.delayed trick
Future<void> upploadChattoCurrent(user_id) async {
allchatRomms.forEach((key, value) {
if (value.user.id == user_id) {
Future.delayed(Duration(seconds: 0)).then(
(value) => {streamController.sink.add(allchatRomms[key]!.chats)});
}
});
}