maybeRoomProvider top-level property

dynamic maybeRoomProvider
final

Attempts to map a roomId to the room, but could come back empty (null) rather than throw. keeps up to date with underlying client even if the room wasn’t found initially,

Implementation

final maybeRoomProvider =
    AsyncNotifierProvider.family<AsyncMaybeRoomNotifier, Room?, String>(
  () => AsyncMaybeRoomNotifier(),
);