botProfileFromRoom method

BotProfile botProfileFromRoom(
  1. Room? room
)

Implementation

BotProfile botProfileFromRoom(Room? room) {
  final profile = profileFromRoom(room);
  if (profile is BotProfile) return profile;
  return const BotProfile.empty();
}