ZegoCallInRoomChatViewConfig class
Control options for the bottom-left message list.
This class is used for the chatView
property of ZegoUIKitPrebuiltCallConfig.
If you want to customize chat messages, you can specify the itemBuilder in ZegoInRoomMessageViewConfig
.
Example:
ZegoInRoomMessageViewConfig( itemBuilder: (BuildContext context, ZegoRoomMessage message) { return ListTile( title: Text(message.message), subtitle: Text(message.user.id), ); }, );
Constructors
- ZegoCallInRoomChatViewConfig({ZegoInRoomMessageItemBuilder? itemBuilder})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemBuilder ↔ ZegoInRoomMessageItemBuilder?
-
Use this to customize the style and content of each chat message list item.
For example, you can modify the background color, opacity, border radius, or add additional information like the sender's level or role.
getter/setter pair
- 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited