EmptyRoomInfo class
Everything the SDK knows about a room that has no messages yet, handed to an EmptyRoomBuilder so the host can turn the hole into a starting card of its own — the plan the room was opened about, who organizes it, the actions that belong next to it.
The SDK owns the slot and the fallback; the host owns the content. A
builder that returns null for a room it has nothing to say about
falls back to the SDK card, so a host can decorate some rooms and leave
the rest alone.
- Annotations
Constructors
-
EmptyRoomInfo({required ChatUser currentUser, String? roomId, bool isGroup = false, List<
ChatUser> otherUsers = const <ChatUser>[], ValueChanged<String> ? onSendFirstMessage}) -
const
Properties
- currentUser → ChatUser
-
The local user.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isGroup → bool
-
Whether this room is a group. Wired from
ChatViewBehaviors.isGroupwhen the host set it, otherwise inferred from the member count.final -
onSendFirstMessage
→ ValueChanged<
String> ? -
Sends
textas the room's first message, exactly as if it had been typed in the composer.nullwhen the room cannot be written to (read-only, blocked, or a host that wired no send callback) — a card that offers to send should hide its offer when this isnull.final - otherUser → ChatUser?
-
The single counterpart of a 1:1 room;
nullin a group or in a room whose members the SDK has not resolved.no setter -
otherUsers
→ List<
ChatUser> -
Everyone else in the room, as the SDK knows them.
final
- roomId → String?
-
Server-side room id,
nullwhile the room is still a local draft (a DM whose first message has not materialized it yet).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited