timelineStreamProvider top-level property

dynamic timelineStreamProvider
final

Implementation

final timelineStreamProvider =
    FutureProvider.family<TimelineStream, String>((ref, roomId) async {
  final chat = await ref.watch(chatProvider(roomId).future);
  if (chat == null) {
    throw RoomNotFound();
  }
  return chat.timelineStream();
});